UNPKG

740 BMarkdownView Raw
1## Tofu-cli
2> Tofu 框架配套命令行构建工具。
3
4### 文档适用版本
5
6**>=0.1.3**
7
8### 安装与更新
9
10`npm i -g tofu-cli@latest`
11
12或者 `cnpm i -g tofu-cli@latest`
13
14或者 `yarn global add tofu-cli@latest`
15
16### 使用
17
181. 初始化项目
19
20 `tofu init [-g|--git <git-repo>]`
21
22 - git : 指定git仓库,会在完成项目初始化后进行git的初始化。
23
242. 运行开发服务
25
26 `tofu server [-p|--port <port>]`
27
28 - port : 指定服务运行端口。
29
303. 打包项目
31
32 `tofu build [--zip | --to <dist>]`
33
34 - zip : 打包后压缩
35 - to : 压缩后移动文件到指定目录
36
374. 更新 Tofu
38
39 `tofu update [--npm|--cnpm|--yarn]`
40
41 - npm : 使用npm更新
42 - cnpm : 使用cnpm更新
43 - yar : 使用yarn更新