|
| 1 | +========================================== |
| 2 | +Google Closure Compiler API - Docker Image |
| 3 | +========================================== |
| 4 | + |
| 5 | +.. image:: https://img.shields.io/github/release/femtopixel/docker-google-closure-compiler-api.svg |
| 6 | + :alt: latest release |
| 7 | + :align: left |
| 8 | + :target: http://github.com/femtopixel/docker-google-closure-compiler-api/releases |
| 9 | +.. image:: https://img.shields.io/pypi/v/google-closure-compiler-api.svg |
| 10 | + :alt: PyPI version |
| 11 | + :align: left |
| 12 | + :target: https://pypi.python.org/pypi?:action=display&name=google-closure-compiler-api |
| 13 | +.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler.svg |
| 14 | + :align: left |
| 15 | + :target: https://hub.docker.com/r/femtopixel/google-closure-compiler/ |
| 16 | +.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler.svg |
| 17 | + :align: left |
| 18 | + :target: https://hub.docker.com/r/femtopixel/google-closure-compiler/ |
| 19 | +.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler-app.svg |
| 20 | + :align: left |
| 21 | + :target: https://hub.docker.com/r/femtopixel/google-closure-compiler-app/ |
| 22 | +.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler-app.svg |
| 23 | + :align: left |
| 24 | + :target: https://hub.docker.com/r/femtopixel/google-closure-compiler-app/ |
| 25 | +.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/btc.png |
| 26 | + :alt: Bitcoin donation |
| 27 | + :align: left |
| 28 | + :target: https://m.freewallet.org/id/374ad82e/btc |
| 29 | +.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ltc.png |
| 30 | + :alt: Litecoin donation |
| 31 | + :align: left |
| 32 | + :target: https://m.freewallet.org/id/374ad82e/ltc |
| 33 | +.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png |
| 34 | + :alt: PayPal donation |
| 35 | + :align: left |
| 36 | + :target: https://www.paypal.me/jaymoulin |
| 37 | +.. image:: https://beerpay.io/femtopixel/docker-google-closure-compiler-api/badge.svg |
| 38 | + :alt: Beerpay donation |
| 39 | + :align: left |
| 40 | + :target: https://beerpay.io/femtopixel/docker-google-closure-compiler-api |
| 41 | + |
| 42 | +This image allows you to Compile your JS code using `Google Closure Compiler API <https://developers.google.com/closure/compiler/>`_ in CLI |
| 43 | + |
| 44 | +Install |
| 45 | +======= |
| 46 | + |
| 47 | +.. code:: |
| 48 | + pip3 install google_closure_compiler_api |
| 49 | +
|
| 50 | +Usage |
| 51 | +===== |
| 52 | +.. code:: |
| 53 | +
|
| 54 | + usage: compiler.py [-h] [--js JS] [--js_output_file JS_OUTPUT_FILE] [--compilation_level {WHITESPACE_ONLY,SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS}] |
| 55 | +
|
| 56 | + optional arguments: |
| 57 | + -h, --help show this help message and exit |
| 58 | + --js JS Input file |
| 59 | + --js_output_file JS_OUTPUT_FILE |
| 60 | + Output file |
| 61 | + --compilation_level {WHITESPACE_ONLY,SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS} |
| 62 | + Compilation level |
| 63 | +
|
| 64 | +
|
| 65 | +Default values |
| 66 | +-------------- |
| 67 | + |
| 68 | +- `--js` : /dev/stdin (input your code) |
| 69 | +- `--js_output_file` : /dev/stdout (Prints compiled code in the shell) |
| 70 | +- `--compilation_level` : WHITESPACE_ONLY |
| 71 | + |
| 72 | +Docker usage |
| 73 | +============ |
| 74 | + |
| 75 | +.. code:: |
| 76 | +
|
| 77 | + docker run --rm -ti -v /path/to/my/file.js:/root/myfile.js femtopixel/google-closure-compiler --js /root/myfile.js |
| 78 | +
|
0 commit comments