miniflux-legacy/scripts/make-js.sh

20 lines
444 B
Bash
Raw Normal View History

2014-02-08 20:13:14 +01:00
#!/bin/sh
in=assets/js/all.js
out=assets/js/all.min.js
rm -f $in 2>/dev/null
rm -f $out 2>/dev/null
2014-02-08 20:13:14 +01:00
cat assets/js/app.js assets/js/feed.js assets/js/item.js assets/js/event.js assets/js/nav.js > $in
echo "Miniflux.App.Run();" >> $in
curl -s \
-d compilation_level=SIMPLE_OPTIMIZATIONS \
-d output_format=text \
-d output_info=compiled_code \
--data-urlencode "js_code@${in}" \
2015-01-08 23:54:24 +01:00
https://closure-compiler.appspot.com/compile > $out
2014-02-08 20:13:14 +01:00
rm -f $in