@fastcar/cli 0.0.4 → 0.0.6

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 CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const init = require("../src/init");
4
4
  const setModules = require("../src/setModules");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastcar/cli",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "homepage": "https://william_zhong.coding.net/public/fast-car/fastcar-cli/git/files",
5
5
  "description": "fastcar-cli 脚手架快速搭建",
6
6
  "bin": {
package/src/init.js CHANGED
@@ -9,7 +9,12 @@ 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"; //微服务模板
16
+ const STATICURL =
17
+ "https://e.coding.net/william_zhong/fast-car/fastcar-static.git"; //静态资源模板
13
18
  const optionComponent = ["mysql", "redis", "mongo"];
14
19
 
15
20
  const Questions = async (defaultName) => {
@@ -148,6 +153,18 @@ async function init(args = ["web"]) {
148
153
  downloadUrl = RPCTEMPLATEURL;
149
154
  break;
150
155
  }
156
+ case "cos": {
157
+ downloadUrl = COSTEMPLATEURL;
158
+ break;
159
+ }
160
+ case "micro": {
161
+ downloadUrl = MICROTEMPLATE;
162
+ break;
163
+ }
164
+ case "static": {
165
+ down = STATICURL;
166
+ break;
167
+ }
151
168
  default: {
152
169
  downloadUrl = WEBTEMPLATEURL;
153
170
  break;