0.0.0-beta • Published 4 years ago

generator-wf v0.0.0-beta

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

generator-wf NPM version Build Status Dependency Status Coverage percentage

Installation

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

npm install -g yo
npm install -g generator-wf
# or u can also use generator-giao, generator-froguard. There are different names of the same one pkg
# yo giao, yo giao:node, yo giao:web

Then generate your new project:

# node-project:  yo wf (or yo wf:node)
yo wf
# web-project: yo wf:web
yo wf:web

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 © Froguard

TODO:

  • license: 各种 type & prompt 中添加 license 的 选项
  • keywords,files,private 加到 prompt 中,根据,或空格拆分输入
  • 根据 answer,区分 package.json 中的各个依赖项,eg,选择了 bin 时,默认加上 chalk
  • 根据 answer 中的 test,添加设置 package.json 中的 scripts
  • 关于 git-url 的获取,可以通过读取本地 .git/config 进行解析出信息来