closure-compiler-cli
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "closure-compiler-cli", | ||
"description": "CLI wrapper for google-closure-compiler", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"author": "Teppei Sato <teppeis@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
closure-compiler-cli | ||
==== | ||
CLI wrapper for [google-closure-compiler](https://www.npmjs.com/package/google-closure-compiler) | ||
Thin CLI wrapper for [`google-closure-compiler`](https://www.npmjs.com/package/google-closure-compiler) | ||
[![npm version][npm-image]][npm-url] | ||
![Node.js Version Support][node-version] | ||
[![build status][circleci-image]][circleci-url] | ||
[![dependency status][deps-image]][deps-url] | ||
@@ -16,2 +17,3 @@ ![License][license] | ||
``` | ||
and `java` is required in your `PATH`. | ||
@@ -28,2 +30,23 @@ ## Usage | ||
## Why? | ||
If `closure-compiler-cli` is installed in your project local, you can use Closure Compiler in `npm scripts` like | ||
```json | ||
{ | ||
"scripts": { | ||
"minify": "closure-compiler --js ./src/app.js --language_out ES5 > ./dist/bundle.js" | ||
} | ||
} | ||
``` | ||
instead of | ||
```json | ||
{ | ||
"scripts": { | ||
"minify": "java -jar ./node_modules/google-closure-compiler/compiler.jar --js ./src/app.js --language_out ES5 > ./dist/bundle.js" | ||
} | ||
} | ||
``` | ||
The path to the compiler jar is changable and provided with `require('google-closure-compiler').compiler.COMPILER_PATH` [officially](https://github.com/google/closure-compiler-npm#plugin-authors-and-native-node-usage), but it's API only for Node.js and not available for shell script. | ||
## License | ||
@@ -38,2 +61,6 @@ | ||
[travis-url]: https://travis-ci.org/teppeis/closure-compiler-cli | ||
[circleci-image]: https://circleci.com/gh/teppeis/closure-compiler-cli.svg?style=svg | ||
[circleci-url]: https://circleci.com/gh/teppeis/closure-compiler-cli | ||
[appveyor-image]: https://ci.appveyor.com/api/projects/status/KEY/branch/master?svg=true | ||
[appveyor-url]: https://ci.appveyor.com/project/teppeis/closure-compiler-cli/branch/master | ||
[deps-image]: https://img.shields.io/david/teppeis/closure-compiler-cli.svg | ||
@@ -45,3 +72,1 @@ [deps-url]: https://david-dm.org/teppeis/closure-compiler-cli | ||
[license]: https://img.shields.io/npm/l/closure-compiler-cli.svg | ||
[appveyor-image]: https://ci.appveyor.com/api/projects/status/22nwyfaf5p0yw54j/branch/master?svg=true | ||
[appveyor-url]: https://ci.appveyor.com/project/teppeis/closure-compiler-cli/branch/master |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3687
69