Neanderthals Paint Mammals

    gulp-gccs

    1.0.3 • Public • Published

    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 with gulp@4:

    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'));
     

    Install

    npm i gulp-gccs

    DownloadsWeekly Downloads

    2

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    7.94 kB

    Total Files

    7

    Last publish

    Collaborators

    • duzun