- 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
git submodule add git://github.com/dsimard/ready.js.git ready.js
-
run
cd ready.js && git submodule init && git submodule update && cd ..
-
Create config file in your_project/ready.conf.js :
{ src : "./javascripts", dest : "./minified" }
-
run
echo 'node ready.js/bin/ready.js ready.conf.js' >> .git/hooks/pre-commit
Then, every time you commit, ready.js will be run.
run node ready.js/bin/ready.watch.js ready.conf.js