This project uses grunt to automate tasks like minifying css and js as well as js linting and css prefixing.
-
Install node.
-
Install the grunt cli (command line interface) globally from the command line with :
npm install -g grunt-cli
, this only needs to be done once per dev machine. -
Install jshint globally from the command line with :
npm install -g jshint
, this only needs to be done once per dev machine.
- Fork the repo into your own github account.
2 Clone your fork and in cloned directory:
- Install the local dev dependencies for the project in the repo from the command line: `npm install`, this only needs to be done once per dev machine.
- Run grunt from the repo with: `grunt` this will launch a mini dev server and lint your js as you code.
- Run grunt from the repo with: `grunt build` this will create a `dist` folder with minified code ready for deployment.
- There are other grunt tasks, use: `grunt -h` to see a list.