@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 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.5",
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,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;