Metadata-Version: 2.1
Name: PyClosure
Version: 0.0.1
Summary: A simple to allow to make compiling JavaScript with the Closure compiler easier.
Home-page: https://github.com/Spiderpig86/PyClosure
Author: Stanley Lim
Author-email: slim679975@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Topic :: Software Development :: Build Tools
Requires-Python: >=3
Description-Content-Type: text/markdown

# PyClosure

A console application that allows you to easily compile and optimize
your JavaScript files in **batches** using the [Google Closure
Compiler](https://developers.google.com/closure/compiler/).

# Install

Run the following command.

``` sh
pip3 install pyclosure
```

# Usage

``` sh
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 is `index.min.js`.)
  - `--level` - the type of compilation to be used for the variables.
      - Supported values:
          - `WHITESPACE_ONLY`
          - `SIMPLE_OPTIMIZATIONS`
          - `ADVANCED_OPTIMIZATIONS`
  - `--extern` (optional) - enter in variables you want in your compiled
    code separated by **semi-colons**.

