Copyright (c) 2011, R. Kowalski All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
We added support for node-services in your app, example usage:
$ compress-my-mojo -s BasicService/ servicesample.application/ servicesample.srv/ servicesample.package/
We are now supporting UglifyJS for node.js which makes the build a lot faster
- OS: currently Linux / Mac OS X are supported
- Node.js - get node at: https://github.com/joyent/node/wiki/Installation
- Install node.js & npm
npm install uglify-js
add the path to uglify-js/bin to your $PATH at end of your .bashrc, for example:
- Set your path to YUI-Compressor or Google Closure Compiler jar in rb-file or place them in the directory of this project
Add the directory of (a link to) compress-my-mojo to your $PATH at end of your .bashrc, for example:
$ compress-my-mojo [-i|v1|g|ugly|s] <PROJECTFOLDER-Name>
-i install to default device
-v1 package for >= webOS 1.4.x devices (old format)
-g to use google closure compiler (default is YUI-Compressor)
-ugly to use UglifyJS (default is YUI-Compressor)
$ compress-my-mojo -s BasicApp/ servicesample.application/ servicesample.srv/ servicesample.package/
or combine them: -iv1g to package for webOS 1.4.x devices (old format), using Google Closure Compiler and installing them
We use 2 spaces as tab size for intendation.