New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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

CLI wrapper for google-closure-compiler

1.0.4
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

*** @deprecated use google-closure-compiler ***

Now official google-closure-compiler has the CLI command. Just use it!

closure-compiler-cli

Thin CLI wrapper for google-closure-compiler

npm version Node.js version Support Build status Dependency status License

How to install

$ npm i -g closure-compiler-cli

and java is required in your PATH.

Usage

$ closure-compiler --some --options foo bar

equals to

$ java -jar path/to/compiler.jar --some --options foo bar

Why?

If closure-compiler-cli is installed in your project local, you can use Closure Compiler in npm scripts like

{
  "scripts": {
    "minify": "closure-compiler ./src/app.js > ./dist/bundle.js"
  }
}

instead of

{
  "scripts": {
    "minify": "java -jar ./node_modules/google-closure-compiler/compiler.jar ./src/app.js > ./dist/bundle.js"
  }
}

The path to the compiler jar is changable and provided with require('google-closure-compiler').compiler.COMPILER_PATH officially, but it's API only for Node.js and not available for shell script.

License

MIT License: Teppei Sato <teppeis@gmail.com>

Keywords

closure-compiler

FAQs

Package last updated on 21 Mar 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