ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Combine​And​Minify

by joelcarlton ALL

Combine a list of JavaScript files Into a single master and minified version

Details

  • 1.0.2
  • github.​com
  • github.​com
  • 10 years ago
  • 12 minutes ago
  • 11 years ago

Installs

  • Total 4K
  • Win 2K
  • Mac 1K
  • Linux 447
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime-CombineAndMinify

Combine a list of JavaScript files Into a single master and minified version

Created

8/2013

Last Updated

12/2013

Version

1.0.2

Release Notes

1.0.2 (12/12/13)

  • Updated documentation to include absolute paths and notes

1.0.1 (08/27/13)

  • Added project description
  • Fixed syntax error

1.0.0 (08/2013)

  • Initial build

Setting Up CombineAndMinify

In order to use CombineAndMinify your project must be saved to a .sublime-project.

  1. Click Project from Menu Bar
  2. Click Save Project As
  3. Name and Save
  4. Click Project > Edit Project
  5. Add Settings for CombineAndMinify
  6. Save project file
  7. Make files.txt with a list of files that should be processed at the location specified with FileList
  8. Run by using key command, tools menu, right click menu, or command palette

Notes:

  1. Paths may need to be set up as absolute to work
  2. InPath and OutPath require a trailing directory /
Minimum Settings
{
    "settings":
    {
        "Combine: FileList": "/files.txt",
        "Combine: InPath": "/public/js/"
    }
}
Template
{
    "folders":
    [
        {
            "path": "/path/to/working/files"
        }
    ],
    "settings":
    {
        "Combine: FileList": "/path/to/working/files/files.txt",
        "Combine: InPath": "/path/to/working/files/public/js/",
        "Combine: OutPath": "/path/to/working/files/private/js/",
        "Combine: MasterName": "master.js",
        "Combine: MinifyName": "master.min.js"
    }
}
files.txt
################ Comments Are Ignored ################
externaljs.js
externaljs2.js
Defaults
  • FileList and InPath are required.
  • OutPath is not required and will default to InPath unlesss specified otherwise.
  • MasterName and MinifyName are not required and will resolve to master.js and master.min.js unlesss specified otherwise

License

GNU GENERAL PUBLIC LICENSE Version 2, June 1991