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.
30 lines (27 loc) • 815 B
Markdown
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`
```js
grunt.initConfig({
readme: {
options: {},
files: {
'test/actual/': ['test/fixtures/*.js']
}
}
});
```
In this example, custom options are used to do something else with whatever else. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result in this case would be `Testing: 1 2 3 !!!`
```js
grunt.initConfig({
readme: {
options: {
separator: ': ',
punctuation: ' !!!',
},
files: {
'test/actual/': ['test/fixtures/*.js']
}
}
});
```