Added pre-commit shell and auto-build in grunt.