Coder Social home page Coder Social logo

generate-snapdragon's Introduction

generate-snapdragon NPM version NPM monthly downloads NPM total downloads Linux Build Status

Scaffold out a new snapdragon plugin project.

Table of Contents - [Install](#install) - [CLI usage](#cli-usage) - [Available tasks](#available-tasks) - [API usage](#api-usage) - [About](#about)

Install

Install with npm:

$ npm install --save generate-snapdragon

CLI usage

Once both generate and generate-snapdragon are installed globally, run the following command to run this generator's default task:

$ gen snapdragon

Available tasks

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

$ gen snapdragon

Generate only the index.js file for a snapdragon plugin. Use --stem to change the file name.

Example

$ gen snapdragon:plugin-only
$ gen snapdragon:plugin-only --stem foo.js

Scaffold out a complete project for a snapdragon compiler plugin.

Example

$ gen snapdragon:compiler

Generate only the index.js file for a compiler plugin. Use --stem to change the file name.

Example

$ gen snapdragon:compiler-only
$ gen snapdragon:compiler-only --stem foo.js

Scaffold out a complete project for a snapdragon parser plugin.

Example

$ gen snapdragon:parser

Generate only the index.js file for a snapdragon parser plugin. Use --stem to change the file name.

Example

$ gen snapdragon:parser-only
$ gen snapdragon:parser-only --stem foo.js

API usage

To extend your own generator with the tasks and functionality of generate-snapdragon, inside your generator add the following line of code:

app.use(require('generate-snapdragon'));

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(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:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT license.


This file was generated by verb-generate-readme, v0.4.1, on January 20, 2017.

generate-snapdragon's People

Contributors

jonschlinkert avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.