0.4.1 • Published 5 years ago

create-finch v0.4.1

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

create-finch

Creates a UmiJS-liked application/plugin/block/library using the command line.

Usage

$ yarn create finch [appName]

需要本地安装yarn,Yarn安装方式

Boilerplates

  • ant-design-pro - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
  • block - Create a umi block.

Usage Example

$ yarn create finch

? Select the boilerplate type (Use arrow keys)
 ❯ ant-design-pro  - Create project with an layout-only ant-design-pro boilerplate, use together with umi block.
   block           - Create a umi block.

FAQ

yarn create finch command failed

这个问题基本上都是因为没有添加 yarn global module 的路径到 PATH 环境变量引起的。

先执行 yarn global bin 拿到路径,然后添加到 PATH 环境变量里。

$ yarn global bin
/usr/local/bin

你也可以尝试用 npm,

$ npm create finch

或者手动安装 create-umi,并执行他,

$ npm install create-finch -g
$ create-finch [appName]

LICENSE

MIT