Commit 804b51f8 authored by Zéfling's avatar Zéfling 🎨
Browse files

minify : change yui-compressor for closure-compiler

parent e209e9b9
......@@ -3,11 +3,11 @@
name=''
if [ "$1" = 'full' ]; then
name='.full'
cat baku.js baku.math.js baku.number.js baku.date.js baku.string.js baku.string.formater.js baku.dom.js | yui-compressor --type js -o "baku$name.min.js"
cat baku.js baku.math.js baku.number.js baku.date.js baku.regexp.js baku.string.js baku.string.formater.js baku.dom.js | closure-compiler --js_output_file="baku$name.min.js"
elif [ "$1" = 'dom' ]; then
name='.dom'
cat baku.js baku.dom.js | yui-compressor --type js -o "baku$name.min.js"
cat baku.js baku.dom.js | closure-compiler --js_output_file="baku$name.min.js"
else
cat baku.js baku.math.js baku.number.js baku.date.js baku.string.js baku.string.formater.js | yui-compressor --type js -o "baku$name.min.js"
cat baku.js baku.math.js baku.number.js baku.date.js baku.regexp.js baku.string.js baku.string.formater.js | closure-compiler --js_output_file="baku$name.min.js"
fi
sed -i '1i/*! BakuJs v0.1b | (c) Zefling | license, see: github.com/Zefling/BakuJS */' "baku$name.min.js"
\ No newline at end of file
sed -i '1i/*! BakuJs v0.1d | (c) Zefling | license, see: github.com/Zefling/BakuJS */' "baku$name.min.js"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment