Shuo/build.sh

19 lines
353 B
Bash
Raw Normal View History

2014-08-25 23:13:47 +00:00
#!/bin/bash
#
# This file will compile the javascript libraries and
# the Handlebars templates.
#
# Install Handlebars
if ! type handlebars &> /dev/null; then
sudo npm -g install handlebars
fi
# Compile the templates
2014-10-04 12:31:45 +00:00
handlebars -e tpl -f client/js/shout.templates.js client/views/
2014-08-25 23:13:47 +00:00
# Uglify the javascript libraries
# See: Gruntfile.js
grunt uglify