Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (17 sloc) 505 Bytes
#!/bin/sh
mkdir -p resources
if [ ! -d "node_modules/uglify-js" ]; then
npm install uglify-js@2.4.24
fi
if [ ! -f "resources/uglify.js" ]; then
./node_modules/.bin/uglifyjs --self -c -m -o resources/uglify.js
fi
if [ ! -d "node_modules/browserify" ]; then
npm install browserify@10.2.6
fi
if [ ! -d "node_modules/clean-css" ]; then
npm install clean-css@3.0.7
fi
if [ ! -f "resources/clean-css.js" ]; then
./node_modules/.bin/browserify -r clean-css -o resources/clean-css.js
fi