0.0.1 • Published 2 years ago
@tawa/tawa-cli v0.0.1
前端脚手架工具 tawa-cli
安装
npm install @tawa/tawa-cli -g
使用
Usage: tawa-cli [options]
create a project by tawa-cli.
Options:
-v, --version output the tawa-cli version
-b, --branch <branch>
-l, --list list all templates.
-r, --registry <registry> registry url,default url is https://registry.npmjs.org
-c, --create <name> create a new project by tawa-cli.
-h, --help display help for command
Examples:
# create a new project with an official template
$ tawa-cli -c <project-name>
or
$ tawa-cli --create <project-name>
工程创建
- 步骤1:输入创建新项目命令
tawa-cli -c <project-name>
-步骤2:选择框架语言
? Please select language(React/NextJS): (Use arrow keys)
❯ React
NextJS
- 步骤3:选择使用平台
? Please select platform(Mobile/PC): (Use arrow keys)
❯ Mobile
PC
然后根据模板中的选项自由选择即可创建项目。
发布
查看包: 登录
https://www.npmjs.com/
搜索添加用户:
npm owner add xxx 包名
查看可以发包的成员:
npm owner ls
发包
- 新增源:nrm use npm
- 登录: npm login,输入账号、密码
- 切换到当前目录,执行npm publish
待办项
- 增加 main-framework-boilerplate
- 增加 framework-boilerplate
- 增加 package-boilerplate
- 增加 components-boilerplate
0.0.1
2 years ago