I have been following Angular development for a couple of years now. As Angular 2 is almost ready I figured I would give it a try. I was asked if I could develop a simple site for a class my girlfriend teaches and I figured that would be a low risk opportunity to try Angular 2.
gem install guard gem install guard-concat gem install guard-jammit gem install guard-sass gem install guard-uglify
Next create a guard configuration file (Guardfile) in your project root and set up and configure it according your needs:
The asset list for Jammit:
Once you are done setting up the config files you need to start Guard in your project root:
dev@dev:/src/example$ guard 06:04:54 - INFO - Guard uses TerminalTitle to send notifications. 06:04:54 - INFO - Using Jammit version 0.6.6 06:04:54 - INFO - Jammit successfully packaged the assets.
One thing to consider is that if your SASS compilation fails because of invalid syntax the entire compilation and minification process will stop and you will get a dated version of your CSS/JS served in your browser. If your latest changes are not reflected in your browser after a refresh its a good idea to have a look at the Guard log to see if the compilation failed.