Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Created July 11, 2012 22:42
Show Gist options
  • Save jeremyfelt/3094244 to your computer and use it in GitHub Desktop.
Save jeremyfelt/3094244 to your computer and use it in GitHub Desktop.
Local YUI JS Lint Check
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
}
@jeremyfelt
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment