- Check if your javascript are valid with jslint.
- Minify your javascript with Closure Compiler (optimize and minify your code).
- Watch your javascript files for jslint while you're coding.
- Create an aggregated file of all your javascripts.
-
run
npm install ready
-
Create config file in your_project/ready.conf.js :
{ src : "./javascripts", dest : "./minified" }
-
run
echo 'readyjs ready.conf.js' >> .git/hooks/pre-commit
Then, every time you commit, ready.js will be run.
run watchjs ready.conf.js
By installing with npm, you can call readyjs
and watchjs
like this :
readyjs ready.conf.js