Skip to content

liderman/gulp-plovr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-plovr

Gulp plugin. Wrapper for Plovr (Closure build tool)

This is a simple wrapper for Plovr.

Table of Contents

Install

npm install --save-dev gulp-plovr

Options

  • debug (Boolean)

    Option log to console. In debug mode will be displayed warning. This option is disabled by default.

    Enabling debug mode:

        ...
    
        .pipe(gulpPlovr({debug: true}))
    
        ...
  • plovr_path (String)

    Absolute path to the jar-file Plovr. Used by default file: plovr-81ed862.jar (release date is Jul 29, 2013) https://code.google.com/p/plovr/downloads/detail?name=plovr-81ed862.jar&can=2&q=

  • java_path (String)

    Path to the interpreter java. Default value: java

  • plovr_args (Object)

    Arguments are the command line.

    Example of argument passing "--formatting=PRETTY_PRINT":

        ...
    
        .pipe(
          gulpPlovr({
            plovr_args: {"formatting": "PRETTY_PRINT"}
          })
        )
    
        ...

Example usage

This example is similar to executing the command in the console:

java -jar plovr-81ed862.jar build ./closure-compiler-plovr-config.json

Equivalent to gulp:

    var plovr = require('gulp-plovr');
    gulp.task('jsbuild', function() {
      return gulp.src(['./closure-compiler-plovr-config.json'])
        .pipe(plovr({
          debug: true
        }));
    });

About

Gulp plugin. Wrapper for Plovr (Closure build tool)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published