Quickly create helpers for use with Assemble, using grunt-init. Includes README documentation, test files, metadata, bower.json and package.json.
npm i -g grunt-cli grunt-init
Once grunt-init is installed, place this template in your
~/.grunt-init/ directory. It's recommended that you use
git clone to install this template into that directory as follows:
(Windows users, see the documentation for the correct destination directory path)
git clone ~/.grunt-init/helper
Note that you may make the template available as any name you choose by simply changing the name of the folder in which the template is stored. So instead of
~/.grunt-init/helper, you may change the name to
~/.grunt-init/foo so that this template is available to be used with the following command:
grunt init is intalled, navigate to the directory where you want the helper to be generated and then:
- At the command-line run
- Enter a name for the helper at the first prompt
This will generate a helper with example code that can be modified or removed.
Note that no warning will be issued if you create a helper with the same name as an existing helper, in which case the existing helper of the same name will be overwritten.
- grunt-init-assemble: Initialize new Assemble projects, with example mixins, helpers, templates and data.
- Assemble's documentation
Copyright 2013 Jon Schlinkert