mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-25 09:38:40 +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
|
||||
sed -i -e 's/[[:blank:]]*$//g' ${OUT}
|
||||
|
||||
# Minimize
|
||||
java -jar ${TOOLS_PATH}/closure-compiler* --compilation_level SIMPLE_OPTIMIZATIONS --js ${OUT}
|
||||
|
||||
# Make single line
|
||||
sed -i -e ':a;N;$!ba;s/\n/ /g' ${OUT}
|
||||
# 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}
|
||||
|
||||
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