grunt-closurefx-builder

1.0.1 • Public • Published

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.

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).

  • For example: /home/john/myproject/build.closure

  • log - a path to the log file to report the compiler's errors and warnings.

  • 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.

Links

License

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

Package Sidebar

Install

npm i grunt-closurefx-builder

Weekly Downloads

1

Version

1.0.1

License

none

Last publish

Collaborators

  • digiarea