Scaffold out a new snapdragon plugin project.
npm install generate-snapdragon> Scaffold out a new snapdragon plugin project.
Install with npm:
``sh`
$ npm install --save generate-snapdragon
Once both generate and generate-snapdragon are installed globally, run the following command to run this generator's default task:
`sh`
$ gen snapdragon
All tasks beside the default task are run by appending the task name to snapdragon:.
Run the generator's default task to scaffold out a new snapdragon plugin project.
Example
`sh`
$ gen snapdragon
Generate only the index.js file for a snapdragon plugin. Use --stem to change the file name.
Example
`sh`
$ gen snapdragon:plugin-only
$ gen snapdragon:plugin-only --stem foo.js
Scaffold out a complete project for a snapdragon compiler plugin.
Example
`sh`
$ gen snapdragon:compiler
Generate only the index.js file for a compiler plugin. Use --stem to change the file name.
Example
`sh`
$ gen snapdragon:compiler-only
$ gen snapdragon:compiler-only --stem foo.js
Scaffold out a complete project for a snapdragon parser plugin.
Example
`sh`
$ gen snapdragon:parser
Generate only the index.js file for a snapdragon parser plugin. Use --stem to change the file name.
Example
`sh`
$ gen snapdragon:parser-only
$ gen snapdragon:parser-only --stem foo.js
To extend your own generator with the tasks and functionality of generate-snapdragon, inside your generator add the following line of code:
`js`
app.use(require('generate-snapdragon'));
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
_(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)_
To generate the readme and API documentation with verb:
`sh`
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
`sh``
$ npm install -d && npm test
Jon Schlinkert
* github/jonschlinkert
* twitter/jonschlinkert
Copyright © 2017, Jon Schlinkert.
Released under the MIT license.
*
_This file was generated by verb-generate-readme, v0.4.1, on January 20, 2017._