Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/femtopixel/docker-google-closure-compiler-api
Google closure compiler CLI API Docker Image
https://github.com/femtopixel/docker-google-closure-compiler-api
cli compiler docker docker-image google-closure-compiler javascript python python3
Last synced: 28 days ago
JSON representation
Google closure compiler CLI API Docker Image
- Host: GitHub
- URL: https://github.com/femtopixel/docker-google-closure-compiler-api
- Owner: femtopixel
- License: mit
- Created: 2017-10-26T17:52:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T14:16:18.000Z (6 months ago)
- Last Synced: 2024-09-27T01:52:22.332Z (about 1 month ago)
- Topics: cli, compiler, docker, docker-image, google-closure-compiler, javascript, python, python3
- Language: Python
- Homepage: https://brands.jaymoulin.me/femtopixel/docker-google-closure-compiler-api/
- Size: 147 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://github.com/femtopixel/docker-google-closure-compiler-api/raw/master/logo.png
:alt: latest release
:target: http://github.com/femtopixel/docker-google-closure-compiler-api/releases==========================================
Google Closure Compiler API - Docker Image
==========================================.. image:: https://img.shields.io/github/release/femtopixel/docker-google-closure-compiler-api.svg
:alt: latest release
: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
:target: https://pypi.org/project/google-closure-compiler-api/
.. image:: https://img.shields.io/docker/pulls/femtopixel/google-closure-compiler.svg
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler/
.. image:: https://img.shields.io/docker/stars/femtopixel/google-closure-compiler.svg
:target: https://hub.docker.com/r/femtopixel/google-closure-compiler/
.. image:: https://github.com/jaymoulin/jaymoulin.github.io/raw/master/ppl.png
:alt: PayPal donation
:target: https://www.paypal.me/jaymoulin
.. image:: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
:alt: Buy me a coffee
:target: https://www.buymeacoffee.com/jaymoulin
.. image:: https://ko-fi.com/img/githubbutton_sm.svg
:alt: Buy me a coffee
:target: https://ko-fi.com/jaymoulinDISCLAIMER: As-of 2021, this product does not have a free support team anymore. If you want this product to be maintained, please support.
(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 image allows you to Compile your JS code using `Google Closure Compiler API `_ 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 levelDefault values
--------------- `--js` : /dev/stdin (input your code)
- `--js_output_file` : /dev/stdout (Prints compiled code in the shell)
- `--compilation_level` : WHITESPACE_ONLYDocker usage
============.. code::
docker run --rm -ti -v /path/to/my/file.js:/root/myfile.js femtopixel/google-closure-compiler --js /root/myfile.js