A Grunt task for Google Closure Compiler.
Install this module on your project's grunt.js gruntfile:
$ npm install grunt-closure-compiler-build
Add dependencies to package.json:
{
"dependencies": {
"grunt-closure-compiler-build": "^1.3.0"
}
}
and run npm
$ npm install
Adding load task line to your grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-closure-compiler-build');
Default Config:
grunt.initConfig({
'closure-compiler-build': {
build: {
url: 'http://dl.google.com/closure-compiler/compiler-latest.zip',
dir: 'node_modules/grunt-closure-compiler-build/bin/',
filename: 'closure-compiler',
update: false
}
}
});
url
= compiler url.
dir
= compiler path (directory to save).
filename
= compiler filename (only basename, without extension).
update
= true|false
, compiler update (remove old & save latest version).
grunt-closure-compiler-build initial for grunt-closure-compiler plugin.
MIT (c) 2017 Ion