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


Release history Release notifications

This version

0.0.1

Download files

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

Files for PyClosure, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size PyClosure-0.0.1-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size PyClosure-0.0.1.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page