Created
July 11, 2012 22:42
-
-
Save jeremyfelt/3094244 to your computer and use it in GitHub Desktop.
Local YUI JS Lint Check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
js_lint_check() { | |
local DEVENV=$PWD | |
local YUICOM="/path/to/yuicompressor/jar/" | |
cd $YUICOM | |
java -jar yuicompressor-2.4.7.jar -v $DEVENV/$1 -o $DEVENV/$2 | |
cd $DEVENV | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obviously make sure that the JAR file from the 'build' directory of your YUI Compressor download (http://yuilibrary.com/download/yuicompressor/) is present in the /path/to/yuicompressor/jar
Accepts 2 arguments - file to check and file to output minified content to.