PyClosure
A console application that allows you to easily compile and optimize your JavaScript files in batches using the Google Closure Compiler.
Install
Run the following command.
pip3 install pyclosure
Usage
usage: python -m pyclosure [-h] [--input <INPUT_FILE/INPUT_DIR>] [--output <OUTPUT_FILE/OUTPUT_DIR>] [--level {WHITESPACE_ONLY, SIMPLE_OPTIMIZATIONS,ADVANCED_OPTIMIZATIONS} --extern <COMMA_SEPARATED_VARS>]
Arguments
-h, --help- show the help menu--input- enter the input file or directory (for batch processing)--output- enter the output file name/folder name (for single processing, the default value isindex.min.js.)--level- the type of compilation to be used for the variables.- Supported values:
WHITESPACE_ONLYSIMPLE_OPTIMIZATIONSADVANCED_OPTIMIZATIONS
- Supported values:
--extern(optional) - enter in variables you want in your compiled code separated by semi-colons.
Metadata
Release files for PyClosure 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyClosure-0.0.1.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyClosure-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / PyClosure-0.0.1.tar.gz
| Download URL | PyClosure-0.0.1.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a6c5fa6d605628f43e85038a4200ccf9fb45c58e97921cf038d5b3e8e6726c1
|
|
BLAKE2b-256 checksum How to use checksums |
41568a6b013b89df0f5a53f5a9ac971eb28dcd427c7759981f082e2b21259a5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Release files / PyClosure-0.0.1-py3-none-any.whl
| Download URL | PyClosure-0.0.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17b3d793f51792e5143793e383e6f746c486ee298d4c5ee81289864442e9a3af
|
|
BLAKE2b-256 checksum How to use checksums |
5349964163f33b6c2dd8387ec9746ecc3c3614fe204a9982bd5e9d6f700265e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|