Grunt plugin for Closure FX Builder is created to use Closure FX Builder and Closure Compiler in your build tasks.
To use the plugin, you need to download the latest build of Closure FX Builder. The builder is distributed as a simple zip archive. To install the builder, just download and unzip the archive.
From the same directory as your project's Gruntfile and package.json, install the plugin using the following command:
$ npm install grunt-closurefx-builderLoad the task by adding the following line to your project's Gruntfile:
grunt.loadNpmTasks('grunt-closurefx-builder');Run Closure Build Configuration calling:
grunt.initConfig({ 'closurefx-builder': { frontend: { builder: 'libs/closurefx-builder/', closure: 'build.closure', log: 'error.log' } } });builder - a path to Closure FX Builder installation directory.
- For example: /home/john/ClosureFXBuilder/
closure - a path to the Closure Build Configuration file (*.closure).
- The path can be absolute or related to your project.
- For example: build/build.closure
log - (optional) a path to the log file to report the compiler's errors and warnings.
- The path can be absolute or related to your project.
- If not specified, errors and warnings will be reported to the console.
- If specified and file does not exist, it will be created. Otherwise, the file will be overrided.
- For example: logs/error.log
This software is licensed under the Apache V2 License. See the LICENSE file for details.

