This image allows you to Compile your JS code using Google Closure Compiler API in CLI
Install
pip3 install google_closure_compiler_api
Usage
usage: compiler.py [-h] [--js JS] [--js_output_file JS_OUTPUT_FILE] [--compilation_level {WHITESPACE_ONLY,SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS}]
optional arguments:
-h, --help show this help message and exit
--js JS Input file
--js_output_file JS_OUTPUT_FILE
Output file
--compilation_level {WHITESPACE_ONLY,SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS}
Compilation level
Default values
–js : /dev/stdin (input your code)
–js_output_file : /dev/stdout (Prints compiled code in the shell)
–compilation_level : WHITESPACE_ONLY
Docker usage
docker run --rm -ti -v /path/to/my/file.js:/root/myfile.js femtopixel/google-closure-compiler --js /root/myfile.js
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file google_closure_compiler_api-0.1.5.tar.gz.
File metadata
- Download URL: google_closure_compiler_api-0.1.5.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abdf764b2a10a9693cbcc3ae6235ffd65c4b748186d33ceeb66d7e74931e1954
|
|
| MD5 |
627b09c34f794bc6f2628de93436c00f
|
|
| BLAKE2b-256 |
aa2ceb23911a3774833c46520ad6f62a10b42ce66d716f7b5b96a0b16c617f70
|