0.0.1 • Published 8 years ago

gulp-ccaas v0.0.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

gulp-ccaas

Compiles JavaScript with the Google Closure Compiler Service API, run and hosted by Google. Similar to gulp-closure-compiler, but does not require Java or the compiler code directly.

Install

npm install --save-dev gulp-ccaas

Example

While there are many options for the raw HTTP API, this plugin just compiles ES6 to ES5.

It takes two options- strict (default true) and advanced (default false). For more information on the advanced mode, see Advanced Compliation and Externs.

var gulp = require('gulp');
var closure = require('gulp-ccaas');

gulp.task('default', function() {
  return gulp.src('your-src.js')
      .pipe(closure({
        advanced: true,
        strict: false
      }))
      .pipe(gulp.dest('out'));
});