Created
June 4, 2013 15:56
-
-
Save faction23/5707110 to your computer and use it in GitHub Desktop.
Tribe powershell compiler script.
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
$filepath="" | |
$compile="compiler.jar" | |
$jsfiles = ls $filepath -Recurse -Include *.js -Exclude *.min.js | |
Foreach($js in $jsfiles){$i=$js.FullName.LastIndexOf(".js") | |
$compressjs= $js.FullName.Remove($i)+".min.js" | |
java -jar $compile --compilation_level SIMPLE_OPTIMIZATIONS --define=''tribe_debug=false'' --jscomp_off=unknownDefines --js_output_file $compressjs $js.FullName | |
} | |
ls $filepath -Recurse -Include *.min.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment