HUB
Sign inSign up
google-closure-compiler logo

femtopixel/google-closure-compiler

Sponsored OSS

By FemtoPixel

•Updated about 1 year ago

This image allows you to Compile your JS code using Google Closure Compiler API in CLI

Image
Languages & frameworks
Integration & delivery
1

10K+

femtopixel/google-closure-compiler repository overview

Github Sources⁠ Github Issues⁠

⁠Google Closure Compiler API - Docker Image

latest release Docker Pulls Docker Stars PayPal donation Buy me a coffee Buy me a coffee

This image allows you to Compile your JS code using Google Closure Compiler API⁠ in CLI

⁠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
Tag summary
Recent tags
Content type
Image
Digest
sha256:3acf7ace7…
Size
20.1 MB
Last updated
about 1 year ago
docker pull femtopixel/google-closure-compiler:latest
This week's pulls