@4399ywkf/cli 0.0.13 → 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 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
  'use strict';
4
3
 
5
4
  var require$$0 = require('commander');
@@ -15,19 +14,63 @@ require('https');
15
14
 
16
15
  var cli = {};
17
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
+
18
60
  const program = require$$0;
19
61
  const inquirer = require$$1;
20
62
  const path = require$$2;
21
63
  const ora = require$$3;
22
64
  const fs = require$$4;
23
65
  const { exec } = require$$5;
66
+ const templates = templates$1;
24
67
 
25
68
  // 美化输出相关
26
69
  const chalk = require$$7;
27
70
  const boxen = require$$8;
28
71
  const figlet = require$$9;
29
72
  const pkgInfo = {
30
- version: "0.0.13",
73
+ version: "0.0.15",
31
74
  };
32
75
 
33
76
  // 美化输出函数
@@ -271,9 +314,6 @@ program
271
314
  });
272
315
  getRepoLoading.start();
273
316
 
274
- // 模拟异步获取模版数据
275
- const templates = templates;
276
-
277
317
  getRepoLoading.succeed();
278
318
  printSuccess("模版列表获取成功!");
279
319
  console.log(); // 空行
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@4399ywkf/cli",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "运维开发部脚手架",
5
5
  "main": "dist/index.js",
6
6
  "bin": {