0.1.2 • Published 8 years ago

generator-dev-cli v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

generator-dev-cli NPM version

A simple cli for creating a enviroment of plugin development

Installation

First, install Yeoman and generator-dev-cli using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-dev-cli

Then generate your new project:

yo dev-cli

Finally install dependencies for new project:

npm install

Usage

You can use either es6 or cjs to write your own plugin in the directory of src, and the entry file is index.js.

I recommond you to use es6 which gets a better support by rollup.

Build your plugin:

npm run build <plugin-name>

Compress your plugin:

npm run compress

Build and compress:

npm run build-prod <plugin-name>

Test your plugin:

npm test

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

License

MIT © lsa2127291