GithubHelp home page GithubHelp logo

joelcarlton / combineandminify Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 132 KB

Python script that combines JavaScript files into one large file and minifies.

License: GNU General Public License v2.0

Python 100.00%

combineandminify's Introduction

CombineAndMinify

A Python script that combines JavaScript files into one large file and creates a master and minified version. Lets the developer work with multiple files and build one large include for the browser.

Created

2012

Version

1.0

Release Notes

1.0 (2012)
  • Initial build

Usage

  1. Clone CombineAndMinify into an existing project
  2. Add to .gitignore to exclude (GitHub)
  3. Edit paths in process.py
  4. Add files to source in files.txt.
  5. Run $ python process.py to combine and minify

process.py

fileList = 'files.txt'
jsPath = '../client/public/js/'
jsMaster = jsPath + 'master.js'
jsMinify = jsPath + 'minify.js'

files.txt

################ Comments Are Ignored ################
externaljs.js
externaljs2.js

Include master.js or minify.js in your project. All source files can be left separate and intact. After editing an include just run process.py again to rip off a new minify and master.

License

GNU GENERAL PUBLIC LICENSE Version 2, June 1991

combineandminify's People

Contributors

joelcarlton avatar

Stargazers

Jase Wilson avatar

Watchers

 avatar

Forkers

he11yeah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.