@fastcar/cli 0.0.4 → 0.0.5
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/bin/cli.js +1 -1
- package/package.json +1 -1
- package/src/init.js +12 -1
package/bin/cli.js
CHANGED
package/package.json
CHANGED
package/src/init.js
CHANGED
|
@@ -9,7 +9,10 @@ const WEBTEMPLATEURL =
|
|
|
9
9
|
"https://e.coding.net/william_zhong/fast-car/fastcar-boot-web.git"; //web模板
|
|
10
10
|
const RPCTEMPLATEURL =
|
|
11
11
|
"https://e.coding.net/william_zhong/fast-car/fastcar-boot-rpc.git"; //rpc模板
|
|
12
|
-
|
|
12
|
+
const COSTEMPLATEURL =
|
|
13
|
+
"https://e.coding.net/william_zhong/fast-car/fastcar-cos.git"; //cos模板
|
|
14
|
+
const MICROTEMPLATE =
|
|
15
|
+
"https://e.coding.net/william_zhong/fast-car/fastcar-microservices.git"; //微服务模板
|
|
13
16
|
const optionComponent = ["mysql", "redis", "mongo"];
|
|
14
17
|
|
|
15
18
|
const Questions = async (defaultName) => {
|
|
@@ -148,6 +151,14 @@ async function init(args = ["web"]) {
|
|
|
148
151
|
downloadUrl = RPCTEMPLATEURL;
|
|
149
152
|
break;
|
|
150
153
|
}
|
|
154
|
+
case "cos": {
|
|
155
|
+
downloadUrl = COSTEMPLATEURL;
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
case "micro": {
|
|
159
|
+
downloadUrl = MICROTEMPLATE;
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
151
162
|
default: {
|
|
152
163
|
downloadUrl = WEBTEMPLATEURL;
|
|
153
164
|
break;
|