Basic boilerplate for new project based on grunt, bower, html5boilerplate and others.
Create a basic project include LESS (with Bootstrap), Browserify, React, jQuery and Assemble.
If you haven't already done so, install grunt-init.
Once grunt-init is installed, place this template in your ~/.grunt-init/
directory. It's recommended that you use git to clone this template into that directory, as follows:
git clone https://github.com/actum/grunt-init-basic.git ~/.grunt-init/basic
(Windows users, see the documentation for the correct destination directory path)
At the command-line, cd into an empty directory, run this command and follow the prompts.
grunt-init basic
You should now install project dependencies with:
npm instal && bower install
You should use npm instal && bower install && grunt build
after each pull to refresh all dependencies and initialize app.
Before each commit run the build task to be shure the app is ok.
grunt build
You can also execute each task separately.
grunt css // compile LESS
grunt js // lint js files, compile js with Browserify
grunt tpl // compile static templates with Assemble
grunt build // build whole project
grunt // run watch task for compile LESS, lint and compile js files
Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.