Create a new WebApp files with grunt-init, including Bower package manager, LESS with LESSHAT3 mixins, RequireJS with r.js optimizer, jshint, livereloading.
This plugin requires Grunt 0.4.x
npm install -g grunt-cli
npm install -g bower
git clone [email protected]:slinto/grunt-init-myapp.git ~/.grunt-init/myapp
At the command-line, cd into an empty directory, run this command and follow the prompts.
grunt-init myapp
npm install && bower install
Default server on localhost:9000 (including livereload)
grunt server
In production remove DEV USE
section and uncomment PRODUCTION USE
html code from index.html
and others .html
files. Final build is in /dist
folder.
grunt build
grunt