0.0.3 • Published 3 years ago

@s7n/cli v0.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

s7n-cli 个人脚手架工具

安装

使用 npm 安装:

npm i @s7n/cli -g

创建项目模版

使用 create-app 命令可在当前文件夹下创建项目模版,例如:

s7n create-app my_demo

这样就会创建一个默认支持 TS + React 项目

创建不同类型的项目模板

使用 --type 参数可以创建不同类型项目模版

// 创建支持 TS + React 的项目(等同于默认)
s7n create-app ts_react_demo --type ts-react

// 创建支持 TS 的项目
s7n create-app ts_react_demo --type ts

// 创建支持 ES + React 的项目
s7n create-app ts_react_demo --type es-react

// 创建支持 ES 的项目
s7n create-app ts_react_demo --type es

注意事项

由于创建项目时从 Github 上拉取项目模板信息,所以可能由于网络的原因导致创建失败