@forchange/cli
前端项目脚手架
Last updated 8 months ago by simdd .
MIT · Original npm · Tarball · package.json
$ cnpm install @forchange/cli 
SYNC missed versions from official npm registry.

@forchange/cli

npm version license

项目模版脚手架,@forchange/cli

Features

  • 一键生成
  • 多套模版
  • 自定义配置
  • 插值替换

Install

$ npm install @forchange/cli -g

Usage

$ forchange-cli

> react-template
  react-mobile-template

? 请输入项目名[ninth-studio-mobile]:

Advance

如果你是模版开发者

模版需要替换插值时,在模版根目录新建 .clirc 文件进行配置,
然后在需要替换插值的地方,用 <$插值$> 占位即可

{
  //需要替换的README
  "readme": "INSTANCE.md",

  //插值替换
  "prompts": [
    {
      "type": "input",
      "name": "title", //name为插值变量名
      "message": "请输入项目title",
      "default": "风变编程"
    }
  ]
}

???? 如何配置 prompts

Help

$ forchange-cli -h

License

MIT

Current Tags

  • 0.0.18                                ...           latest (8 months ago)

18 Versions

  • 0.0.18                                ...           8 months ago
  • 0.0.17                                ...           9 months ago
  • 0.0.16                                ...           9 months ago
  • 0.0.15                                ...           9 months ago
  • 0.0.14                                ...           a year ago
  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           a year ago
  • 0.0.8                                ...           a year ago
  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.5                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 21
Last Day 0
Last Week 20
Last Month 6
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |