mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-14 17:58:41 +00:00
Fix build order
This commit is contained in:
parent
5b8ab304d7
commit
3457e0c464
|
|
@ -9,6 +9,10 @@ done
|
||||||
|
|
||||||
# Remove spaces at end of line
|
# Remove spaces at end of line
|
||||||
sed -i -e 's/[[:blank:]]*$//g' ${OUT}
|
sed -i -e 's/[[:blank:]]*$//g' ${OUT}
|
||||||
|
|
||||||
|
# Minimize
|
||||||
|
java -jar ${TOOLS_PATH}/closure-compiler* --compilation_level SIMPLE_OPTIMIZATIONS --js ${OUT}
|
||||||
|
|
||||||
# Make single line
|
# Make single line
|
||||||
sed -i -e ':a;N;$!ba;s/\n/ /g' ${OUT}
|
sed -i -e ':a;N;$!ba;s/\n/ /g' ${OUT}
|
||||||
# Remove multiple spaces
|
# Remove multiple spaces
|
||||||
|
|
@ -18,4 +22,3 @@ sed -i -e 's/(function *(jsOMS) *{ *"use strict";//g' ${OUT}
|
||||||
sed -i -e 's/} *(window.jsOMS = window.jsOMS || {}));//g' ${OUT}
|
sed -i -e 's/} *(window.jsOMS = window.jsOMS || {}));//g' ${OUT}
|
||||||
|
|
||||||
echo "(function(jsOMS){\"use strict\";$(cat ${OUT})}(window.jsOMS = window.jsOMS || {}));" > ${OUT}
|
echo "(function(jsOMS){\"use strict\";$(cat ${OUT})}(window.jsOMS = window.jsOMS || {}));" > ${OUT}
|
||||||
java -jar ${TOOLS_PATH}/closure-compiler* --compilation_level SIMPLE_OPTIMIZATIONS --js ${OUT}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user