Create a website scaffold with grunt-init.
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/eatarandom/grunt-init-static.git ~/.grunt-init/eatarandom-static
At the command-line, cd into an empty directory, run this command and follow the prompts.
grunt-init eatarandom-static
# install dependencies
bundle install && npm install && bower install
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.
To run a server:
# default
grunt server
# run server using dist files
grunt server:dist
To build the project:
# tasks that <grunt build> runs
# clean:dist
# compass
# requirejs
# imagemin (coming soon)
# htmlmin
# cssmin
# uglify
# copy
grunt build
To test the project: (coming soon)
grunt test