0.3.31 • Published 2 years ago
@shinyberry/create-app v0.3.31
npx
npx @ray-js/create-app my-app
(npx is a package runner tool that comes with npm 5.2+ and higher, see instructions for older npm versions)
npm
npm init @ray-js/app my-app
npm init is available in npm 6+
Yarn
yarn create @ray-js/app my-app
命令行参数(以下参数可不传,默认从npm中拉取模板)
timeout
模板失效时间 默认值0 * 60 * 1000
即总是拉取最新的repo
模板拉取来源 如果是仓库,需 参数branch
指定分支,默认为main
branch
默认main
,repo
必须存在registry
npm镜像,默认淘宝源
注意:
- 模板npm包
@ray-js/tuya-cra-template
- 模板仓库