Skip to main content

A simple to allow to make compiling JavaScript with the Closure compiler easier.

Project description

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 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyClosure-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyClosure-0.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file PyClosure-0.0.1.tar.gz.

File metadata

  • Download URL: PyClosure-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for PyClosure-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a6c5fa6d605628f43e85038a4200ccf9fb45c58e97921cf038d5b3e8e6726c1
MD5 89aaec5d013cf99b99948474d12d559e
BLAKE2b-256 41568a6b013b89df0f5a53f5a9ac971eb28dcd427c7759981f082e2b21259a5e

See more details on using hashes here.

File details

Details for the file PyClosure-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: PyClosure-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for PyClosure-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17b3d793f51792e5143793e383e6f746c486ee298d4c5ee81289864442e9a3af
MD5 32a67897e2d56f45c9d99717fb3f9c54
BLAKE2b-256 5349964163f33b6c2dd8387ec9746ecc3c3614fe204a9982bd5e9d6f700265e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page