1.3.0 • Published 8 years ago
grunt-closure-compiler-build v1.3.0
grunt-closure-compiler-build
A Grunt task for Google Closure Compiler.
Getting Started
Install Package
Install this module on your project's grunt.js gruntfile:
$ npm install grunt-closure-compiler-buildInstall Package (Alternate)
Add dependencies to package.json:
{
"dependencies": {
"grunt-closure-compiler-build": "^1.3.0"
}
}and run npm
$ npm installAdd Task
Adding load task line to your grunt.js gruntfile:
grunt.loadNpmTasks('grunt-closure-compiler-build');Add Config
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
}
}
});Config Properties (all properties is required).
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).
Note
grunt-closure-compiler-build initial for grunt-closure-compiler plugin.
License
MIT (c) 2017 Ion