Google closure compiler CLI API
Project description
==========================================
Google Closure Compiler API - Docker Image
==========================================
.. image:: https://img.shields.io/github/release/femtopixel/docker-google-closure-compiler-api.svg
:alt: latest release
:align: left
:target: http://github.com/femtopixel/docker-google-closure-compiler-api/releases
.. image:: https://img.shields.io/pypi/v/google-closure-compiler-api.svg
:alt: PyPI version
:align: left
:target: https://pypi.python.org/pypi?:action=display&name=google-closure-compiler-api
.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler/
.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler/
.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler-app.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler-app/
.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler-app.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler-app/
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/btc.png
:alt: Bitcoin donation
:align: left
:target: https://m.freewallet.org/id/374ad82e/btc
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ltc.png
:alt: Litecoin donation
:align: left
:target: https://m.freewallet.org/id/374ad82e/ltc
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png
:alt: PayPal donation
:align: left
:target: https://www.paypal.me/jaymoulin
.. image:: https://beerpay.io/femtopixel/docker-google-closure-compiler-api/badge.svg
:alt: Beerpay donation
:align: left
:target: https://beerpay.io/femtopixel/docker-google-closure-compiler-api
This image allows you to Compile your JS code using `Google Closure Compiler API <https://developers.google.com/closure/compiler/>`_ in CLI
Install
=======
.. code::
pip3 install google_closure_compiler_api
Usage
=====
.. code::
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
============
.. code::
docker run --rm -ti -v /path/to/my/file.js:/root/myfile.js femtopixel/google-closure-compiler --js /root/myfile.js
Google Closure Compiler API - Docker Image
==========================================
.. image:: https://img.shields.io/github/release/femtopixel/docker-google-closure-compiler-api.svg
:alt: latest release
:align: left
:target: http://github.com/femtopixel/docker-google-closure-compiler-api/releases
.. image:: https://img.shields.io/pypi/v/google-closure-compiler-api.svg
:alt: PyPI version
:align: left
:target: https://pypi.python.org/pypi?:action=display&name=google-closure-compiler-api
.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler/
.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler/
.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler-app.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler-app/
.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler-app.svg
:align: left
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler-app/
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/btc.png
:alt: Bitcoin donation
:align: left
:target: https://m.freewallet.org/id/374ad82e/btc
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ltc.png
:alt: Litecoin donation
:align: left
:target: https://m.freewallet.org/id/374ad82e/ltc
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png
:alt: PayPal donation
:align: left
:target: https://www.paypal.me/jaymoulin
.. image:: https://beerpay.io/femtopixel/docker-google-closure-compiler-api/badge.svg
:alt: Beerpay donation
:align: left
:target: https://beerpay.io/femtopixel/docker-google-closure-compiler-api
This image allows you to Compile your JS code using `Google Closure Compiler API <https://developers.google.com/closure/compiler/>`_ in CLI
Install
=======
.. code::
pip3 install google_closure_compiler_api
Usage
=====
.. code::
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
============
.. code::
docker run --rm -ti -v /path/to/my/file.js:/root/myfile.js femtopixel/google-closure-compiler --js /root/myfile.js
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for google_closure_compiler_api-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed7ade5d551fab8ce123545f4ea5a0546b34e408ce4d7c97bd6701c79553f7af |
|
MD5 | 92a3a6c7d78748f5ed99a2399c568a0b |
|
BLAKE2b-256 | 68041143fe3e6bbbf32e4f35eccb36581c339b4c24eb33cb628652625e367ad7 |