Coder Social home page Coder Social logo

gavinhungry / gulp-closure-compiler-service Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 10 KB

Gulp plugin to the Google Closure compiler service

Home Page: https://www.npmjs.org/package/gulp-closure-compiler-service

License: MIT License

JavaScript 100.00%

gulp-closure-compiler-service's People

Contributors

gavinhungry avatar pierrelvx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

juniperchicago

gulp-closure-compiler-service's Issues

ENOENT errors when not default task

If I use a similar gulpfile to the readme example, it works fine if I do gulp, but fails if I do gulp default with { [Error: ENOENT, open 'default'] errno: 34, code: 'ENOENT', path: 'default' }
Similarly, if I use any other task name.

Not only that, but it seems other tasks also fail with similar error if I have the require for the plugin at the top of the script, though not if I have it in the task function.

Passing flags to CC

How do I pass flags (listed here: https://github.com/steida/gulp-closure-compiler/blob/master/flags.txt) to Closure Compiler?

I'ved tried putting them in the options, but that doesn't work. I want some sort of progress status, for my build process.

This is what I'ved tried:

return gulp.src('./src/*.html')
    .pipe(gulpif('*.js', closure({
        logging_level: 'INFO'
    })
))

Logging level found from Googling: http://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html?is-external=true

I'ved also tried following the instructions from here:

https://www.npmjs.com/package/gulp-closure-compiler-service
https://github.com/gavinhungry/closure-compiler-service/blob/master/README.md#default-options

Options can be passed to the API:

.pipe(closure({
language: 'ECMASCRIPT5',
compilation_level: 'WHITESPACE_ONLY'
}))

and specifying the flags there, but with no luck either.

What am I doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.