zant-admin 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -154,7 +154,37 @@ ZAntAdmin/
|
|
|
154
154
|
- Node.js (推荐 LTS 版本)
|
|
155
155
|
- npm 或 yarn
|
|
156
156
|
|
|
157
|
-
###
|
|
157
|
+
### 方式一:使用脚手架(推荐)
|
|
158
|
+
|
|
159
|
+
#### 全局安装脚手架
|
|
160
|
+
```bash
|
|
161
|
+
npm install -g zant-admin
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
#### 创建新项目
|
|
165
|
+
```bash
|
|
166
|
+
# 交互式创建项目
|
|
167
|
+
zant-admin create my-project
|
|
168
|
+
|
|
169
|
+
# 或使用命令行参数
|
|
170
|
+
zant-admin create my-project --template default --description "我的管理系统"
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
#### 脚手架命令
|
|
174
|
+
```bash
|
|
175
|
+
# 查看帮助
|
|
176
|
+
zant-admin --help
|
|
177
|
+
|
|
178
|
+
# 查看可用模板
|
|
179
|
+
zant-admin list-templates
|
|
180
|
+
|
|
181
|
+
# 创建项目
|
|
182
|
+
zant-admin create <project-name>
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 方式二:手动安装
|
|
186
|
+
|
|
187
|
+
#### 安装依赖
|
|
158
188
|
```bash
|
|
159
189
|
npm install
|
|
160
190
|
```
|