Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Latest commit

 

History

History
47 lines (35 loc) · 2.56 KB

File metadata and controls

47 lines (35 loc) · 2.56 KB

logo

Google Closure Compiler APP - Docker Image

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

As-of 2020-08, Google Clousure compiler app has been deprecated, therefore, this docker image is deprected as-well (cf. https://github.com/google/closure-compiler/wiki/Binary-Downloads)

(This product is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addition to maintenance and stability there are many desirable features yet to be added.)

THIS REPOSITORY IS AUTO-UPDATED BY GITHUB-RELEASE-NOTIFIER (https://github.com/femtopixel/github-release-notifier)

This image allows you to Compile your JS code using Google Closure Compiler APP 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-app --js /root/myfile.js