gulp-closure-builder-list

1.0.0 • Public • Published

gulp-closure-builder-list

Build Status Dependency Status devDependency Status

Gulp plugin that implements Google ClosureBuilder's list output mode

This plugin receives several dependency files for Closure Libraries, e.g. created with gulp-closure-deps and outputs all files that contain transitive depdendencies of a specified entry point.

The need for such a plugin comes from JsTestDriver which requires a list of files to be loaded during tests. When you are working with closure library, you may need to load hundreds of file, so maintaining such a configuration file manually is not feasible.

Install

npm install --save-dev gulp-closure-builder-list

Example

var closureDeps = require('gulp-closure-deps');
var closureList = require('gulp-closure-builder-list');

gulp.task('default', function() {
  return gulp.src(['js/*.js', 'bower_components/closure-library/closure/goog/**/*.js'])
    .pipe(closureDeps({
      fileName: 'deps.js'
    }))
    .pipe(closureList({
      entryPoint: 'main' 
    }))
    .pipe(gulp.dest('build'));
});

API

closureList(options)

options

fileName

Type: String
Default: manifest.mf

Generated file name.

entryPoint

Type: String

The entry point of the Google Closure Compiler compilation.

License

MIT © Cristian Talau

Package Sidebar

Install

npm i gulp-closure-builder-list

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.13 kB

Total Files

4

Last publish

Collaborators

  • ctalau