0.1.0 • Published 7 years ago

generator-quaint-plugin v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

generator-quaint-plugin

Generate scaffolding for a Quaint plugin written in Earl Grey.

Usage

npm install -g generator-quaint-plugin
yo quaint-plugin

You may write your plugin in JavaScript, or in Earl Grey.

Relevant documentation.

JavaScript

Resulting directory structure:

quaint-my-plugin
  .gitignore
  .npmignore
  package.json
  quaint-setup.js
  lib
    index.js
    setup.js
  • index.js contains the plugin code
  • setup.js contains the code to configure the plugin interactively

Earl Grey

Resulting directory structure:

package-root
  .gitignore
  .npmignore
  package.json
  quaint-setup.js
  src
    index.eg
    setup.eg
  test
    mocha.opt
    test.eg
  • index.eg contains the plugin code
  • setup.eg contains the code to configure the plugin interactively

Commands

In an Earl Grey project, the following commands are defined for convenience:

To compile the project to JS:

npm run compile

Lazy version of compile:

npm run refresh
0.1.0

7 years ago

0.0.0

8 years ago