forked from bhutanio/anon.to
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.sh
20 lines (20 loc) · 885 Bytes
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Assets Compiler
echo "Make sure you have gulp and yuicompressor node package installed"
echo "If you dont have, install it by npm -g install gulp yuicompressor"
echo "-----------------------------------------------------------"
echo "--- Updating NPM and BOWER"
echo "-----------------------------------------------------------"
npm update -g
bower update
npm update
echo "-----------------------------------------------------------"
echo "--- gulping it up"
echo "-----------------------------------------------------------"
gulp --production
echo "-----------------------------------------------------------"
echo "--- Minifying using yuicompressor"
yuicompressor --type js public/js/app.js -o public/js/app.js
yuicompressor --type css public/css/style.css -o public/css/style.css
echo "--- Completed!"
echo "-----------------------------------------------------------"