1 |
|
2 | From the same directory as your project's [Gruntfile][Getting Started] and [package.json][], install this plugin with the following command:
|
3 |
|
4 | ```bash
|
5 | npm install {%= name %} --save
|
6 | ```
|
7 |
|
8 | Once that's done, just add `{%= name %}`, the name of this module, to the `plugins` option in the Assemble task:
|
9 |
|
10 | ```js
|
11 | module.exports = function(grunt) {
|
12 |
|
13 | // Project configuration.
|
14 | grunt.initConfig({
|
15 | assemble: {
|
16 | options: {
|
17 | plugins: ['{%= name %}']
|
18 | },
|
19 | ...
|
20 | }
|
21 | });
|
22 | grunt.loadNpmTasks('assemble');
|
23 | grunt.registerTask('default', ['assemble']);
|
24 | };
|
25 | ```
|
26 |
|
27 | If everything was installed and configured correctly, you should be ready to go!
|
28 |
|
29 | [grunt]: http://gruntjs.com/
|
30 | [Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md
|
31 | [package.json]: https://npmjs.org/doc/json.html |
\ | No newline at end of file |