Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-gccs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-gccs

Gulp plugin to compile JS files using Google Closure Compiler Service

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

gulp-gccs Build Status npm version

Gulp plugin to compile JS files using Google Closure Compiler Service.

Install

Install via npm

npm i -D gulp-gccs

Usage

Here is an example that should get you started:

const gulp   = require('gulp');
const gccs   = require('gulp-gccs');
const rename = require('gulp-rename');

gulp.task('es5', function() {
    return gulp.src('src/*.js', { base: 'src/' })
        .pipe(gccs({
            compilation_level: 'WHITESPACE_ONLY',
            formatting: 'pretty_print',
        }))
        .pipe(gulp.dest('dist/'))
    ;
});

gulp.task('min', function() {
    return gulp.src(['dist/*.js', '!dist/*.min.js'], { base: 'dist/' })
        .pipe(gccs())
        .pipe(rename({extname: '.min.js'}))
        .pipe(gulp.dest('dist/'))
    ;
});

gulp.task('default', gulp.series('es5', 'min'));

Keywords

FAQs

Package last updated on 10 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc