gavinhungry / gulp-closure-compiler-service Goto Github PK
View Code? Open in Web Editor NEWGulp plugin to the Google Closure compiler service
Home Page: https://www.npmjs.org/package/gulp-closure-compiler-service
License: MIT License
Gulp plugin to the Google Closure compiler service
Home Page: https://www.npmjs.org/package/gulp-closure-compiler-service
License: MIT License
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.