https://github.com/nazar-pc/build-gc
Opinionated Gulp task that minifies file with Google Closure Compiler
https://github.com/nazar-pc/build-gc
Last synced: 7 months ago
JSON representation
Opinionated Gulp task that minifies file with Google Closure Compiler
- Host: GitHub
- URL: https://github.com/nazar-pc/build-gc
- Owner: nazar-pc
- Created: 2018-01-14T12:49:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-02T09:30:55.000Z (over 7 years ago)
- Last Synced: 2025-03-15T15:18:06.236Z (7 months ago)
- Language: LiveScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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
```javascript
// 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 Licensehttps://opensource.org/licenses/FPL-1.0.0
https://tldrlegal.com/license/bsd-0-clause-license