Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-closure-compiler-service with all npm packages installed. Try it out:

var gulpClosureCompilerService = require("gulp-closure-compiler-service")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-closure-compiler-service v0.6.0

Gulp plugin to the Google Closure compiler service

gulp-closure-compiler-service

Gulp plugin to compile JavaScript with the Google Closure compiler service. No Java dependency.

Installation

$ npm install gulp-closure-compiler-service

Usage

var closure = require('gulp-closure-compiler-service');

gulp.task('compile', function() {
  return gulp.src('src/*.js')
    .pipe(closure())
    .pipe(gulp.dest('dist'));
});

Options can be passed to the API:

.pipe(closure({
  language: 'ECMASCRIPT5',
  compilation_level: 'WHITESPACE_ONLY'
}))

License

This software is released under the terms of the MIT license. See LICENSE.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free