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

build-gc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

build-gc

Opinionated Gulp task that minifies file with Google Closure Compiler

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

Build: Gulp+Closure Compiler

Opinionated Gulp task that minifies file with Google Closure Compiler.

Works with Gulp 4.

How to install

npm install --save-dev build-gc

How to use

// gulpfile.js
// For default and only task:
require('build-gc').default(
    'src/index.js',     // Source file to minify
    'src/index.min.js', // Where to output minified result
    'src/externs.js'    // [optional] Closure Compiler externs
);
// Use it for specific task
const gulp     = require('gulp');
const build_gc = require('build-gc');
gulp.task('minify', build_gc.minify(
    'src/index.js',     // Source file to minify
    'src/index.min.js', // Where to output minified result
    'src/externs.js'    // [optional] Closure Compiler externs
))

Contribution

Feel free to create issues and send pull requests (for big changes create an issue first and link it from the PR), they are highly appreciated!

License

Free Public License 1.0.0 / Zero Clause BSD License

https://opensource.org/licenses/FPL-1.0.0

https://tldrlegal.com/license/bsd-0-clause-license

FAQs

Package last updated on 02 Jul 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