yui/yuglify — pull request #11 by rafaelrinaldi (2013-02-12 05:12:12+00:00)
Title: Fixing issues #2 and #10, and adding custom name feature.

### Pack a single .js file with custom output
You can now compile and compresses all .js files into a single one by using `--compile`/`-c`. Example:

Compiling two .js files into a new file called `all.js`

yuglify foo.js bar.js -c all.js

Compiling two .js files into a new file with the default name which is `main.min.js`

yuglify foo.js bar.js -c

### Template based custom name
Now you're able to customize the output files by using `--name`/`-c`. It's basically a sprintf-based template where you have the file base name and its extension. The default value is `%(name)s.min%(ext)s`:

yuglify foo.js bar.js
This command will generate two files following the default file name template, `foo.min.js` and `bar.min.js`. Let's say you want to use a dash instead of a dot:

yuglify foo.js bar.js -n '%(name)s-min.%(ext)s'
This command will generate two files: `foo-min.js` and `bar-min.js`.

No extra library was added and I've tried to follow the code standards you've been using. Let me know if you want me to make any change.

Cheers.