Create an example project for Assemble.
Create an example project for Assemble with grunt-init, including unit tests.
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 firstname.lastname@example.org:assemble/grunt-init-assemble.git ~/.grunt-init/assemble-example
(Windows users, see the documentation for the correct destination directory path)
grunt-init to use custom default values, move the
defaults.json file to your
~/.grunt-init/ directory, and customize the values in that file.
At the command-line, cd into an empty directory, run
grunt-init assemble command and follow the prompts. If you want to test that it works before you customize:
- Next, run
npm installto install the project's dependencies.
- Then, run
gruntto build the project.
Note that this template will generate files in the current directory, so be sure to change to a new directory first.