@fastcar/cli 0.0.5 → 0.0.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/init.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastcar/cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
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
@@ -13,6 +13,8 @@ const COSTEMPLATEURL =
13
13
  "https://e.coding.net/william_zhong/fast-car/fastcar-cos.git"; //cos模板
14
14
  const MICROTEMPLATE =
15
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"; //静态资源模板
16
18
  const optionComponent = ["mysql", "redis", "mongo"];
17
19
 
18
20
  const Questions = async (defaultName) => {
@@ -159,6 +161,10 @@ async function init(args = ["web"]) {
159
161
  downloadUrl = MICROTEMPLATE;
160
162
  break;
161
163
  }
164
+ case "static": {
165
+ downloadUrl = STATICURL;
166
+ break;
167
+ }
162
168
  default: {
163
169
  downloadUrl = WEBTEMPLATEURL;
164
170
  break;