Here is a version of Predator Pret using grunt.js to handle linting, automated testing, concatenating and minifying of files. The project is structured like so:
vendor- project required libraries
dist- location of concatenated and minified files
test- automated tests
Make sure node.js and NPM are installed first, then run the following commands from the project directory:
npm install -g grunt npm install
Running a server with file watching
grunt will create a server running at
http://localhost:8000, and will watch for file changes
and automatically lint, test, and concatenate a new file on any change.
grunt concat min will concatenate, then minify the latest source.