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

closure-compiler-cli

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

closure-compiler-cli - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"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
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