I am trying to write a script to compress my js files into one file for my ember app.
I have been using Yui Compressor which works fine with my js files. I am having trouble finding a compressor for my handlebars templates. Does anyone know of one? Here is my script so far:
#!/bin/bash
rm application.js
touch application.js
java -jar yuicom.jar js/libs/jquery-1.9.1.js >> application.js
java -jar yuicom.jar js/libs/handlebars-1.0.0-rc.3.js >> application.js
cat js/libs/emb-latest-min.js >> application.js
java -jar yuicom.jar js/*.js >> application.js
java -jar yuicom.jar js/templates/*.hbs >> application.js
Is there a better way to compile an ember app? Ive been using Rails where they do it for you, but now I want to use ember for a php site.