@4399ywkf/cli 0.0.14 → 0.0.15

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/dist/cli.js +45 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -14,19 +14,63 @@ require('https');
14
14
 
15
15
  var cli = {};
16
16
 
17
+ /** 暴露模版代码 */
18
+
19
+ var templates$1 = {
20
+ microFrontend: {
21
+ webpack: {
22
+ main: [
23
+ {
24
+ value: "https://ywgit.gz4399.com/ywkf/webpack-mainApplicate_demo.git",
25
+ name: "webpack-mainApplicate_demo",
26
+ },
27
+ ],
28
+ sub: [
29
+ {
30
+ value: "https://ywgit.gz4399.com/ywkf/webpack-subApplicate_demo.git",
31
+ name: "webpack-subApplicate_demo",
32
+ },
33
+ ],
34
+ },
35
+ vite: {
36
+ main: [
37
+ {
38
+ value: "https://ywgit.gz4399.com/ywkf/vite-mainApplicate_demo.git",
39
+ name: "vite-mainApplicate_demo",
40
+ },
41
+ ],
42
+ sub: [
43
+ {
44
+ value: "https://ywgit.gz4399.com/ywkf/vite-subApplicate_demo.git",
45
+ name: "vite-subApplicate_demo",
46
+ },
47
+ ],
48
+ },
49
+ },
50
+ standalone: {
51
+ nextjs: [
52
+ {
53
+ value: "https://ywgit.gz4399.com/ywkf/next-dome.git",
54
+ name: "next-demo",
55
+ },
56
+ ],
57
+ },
58
+ };
59
+
17
60
  const program = require$$0;
18
61
  const inquirer = require$$1;
19
62
  const path = require$$2;
20
63
  const ora = require$$3;
21
64
  const fs = require$$4;
22
65
  const { exec } = require$$5;
66
+ const templates = templates$1;
23
67
 
24
68
  // 美化输出相关
25
69
  const chalk = require$$7;
26
70
  const boxen = require$$8;
27
71
  const figlet = require$$9;
28
72
  const pkgInfo = {
29
- version: "0.0.14",
73
+ version: "0.0.15",
30
74
  };
31
75
 
32
76
  // 美化输出函数
@@ -270,9 +314,6 @@ program
270
314
  });
271
315
  getRepoLoading.start();
272
316
 
273
- // 模拟异步获取模版数据
274
- const templates = templates;
275
-
276
317
  getRepoLoading.succeed();
277
318
  printSuccess("模版列表获取成功!");
278
319
  console.log(); // 空行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4399ywkf/cli",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "运维开发部脚手架",
5
5
  "main": "dist/index.js",
6
6
  "bin": {