Skip to content

DigiArea/grunt-closurefx-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grunt Plugin for Closure FX Builder

Grunt plugin for Closure FX Builder is created to use Closure FX Builder and Closure Compiler in your build tasks.

NPM

Prepare

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.

Install

From the same directory as your project's Gruntfile and package.json, install the plugin using the following command:

$ npm install grunt-closurefx-builder

Load

Load the task by adding the following line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-closurefx-builder');

Use

Run Closure Build Configuration calling:

grunt.initConfig({ 'closurefx-builder': { frontend: { builder: 'libs/closurefx-builder/', closure: 'build.closure', log: 'error.log' } } });

Options

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

Links

License

This software is licensed under the Apache V2 License. See the LICENSE file for details.

About

Grunt plugin for Closure FX Builder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published