UNPKG

grunt-readme

Version:

Grunt plugin for generating a README from templates, including an optional table of contents. No Gruntfile config is necessary, just choose a starter template and you'll be ready to go.

32 lines (25 loc) 870 B
From the same directory as your project's [Gruntfile][Getting Started] and [package.json][], install this plugin with the following command: ```bash npm install grunt-readme --save-dev ``` _The plugin must be listed in the `devDependencies` of your project.js package.json to be recognized by Assemble!_. Once that's done, just add `grunt-readme`, the name of this module, to the `plugins` option in the Assemble task: ```js module.exports = function(grunt) { // Project configuration. grunt.initConfig({ assemble: { options: { plugins: ['grunt-readme'], readme: { // plugin options } }, ... } }); grunt.loadNpmTasks('assemble'); grunt.registerTask('default', ['assemble']); }; ``` If everything was installed and configured correctly, you should be ready to go!