create-umi 4.0.43 → 4.0.44

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/index.js +44 -41
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -43,49 +43,52 @@ var src_default = async ({ cwd, args }) => {
43
43
  const { username, email } = await (0, import_utils.getGitInfo)();
44
44
  let author = email && username ? `${username} <${email}>` : "";
45
45
  if (!args.default) {
46
- const response = await (0, import_utils.prompts)([
46
+ const response = await (0, import_utils.prompts)(
47
+ [
48
+ {
49
+ type: "select",
50
+ name: "appTemplate",
51
+ message: "Pick Umi App Template",
52
+ choices: [
53
+ { title: "Simple App", value: "app" },
54
+ { title: "Ant Design Pro", value: "max" },
55
+ { title: "Vue Simple App", value: "vue-app" }
56
+ ],
57
+ initial: 0
58
+ },
59
+ {
60
+ type: "select",
61
+ name: "npmClient",
62
+ message: "Pick Npm Client",
63
+ choices: [
64
+ { title: "npm", value: "npm" },
65
+ { title: "cnpm", value: "cnpm" },
66
+ { title: "tnpm", value: "tnpm" },
67
+ { title: "yarn", value: "yarn" },
68
+ { title: "pnpm", value: "pnpm" }
69
+ ],
70
+ initial: 4
71
+ },
72
+ {
73
+ type: "select",
74
+ name: "registry",
75
+ message: "Pick Npm Registry",
76
+ choices: [
77
+ {
78
+ title: "npm",
79
+ value: "https://registry.npmjs.org/",
80
+ selected: true
81
+ },
82
+ { title: "taobao", value: "https://registry.npmmirror.com" }
83
+ ]
84
+ }
85
+ ],
47
86
  {
48
- type: "select",
49
- name: "appTemplate",
50
- message: "Pick Umi App Template",
51
- choices: [
52
- { title: "Simple App", value: "app" },
53
- { title: "Ant Design Pro", value: "max" },
54
- { title: "Vue Simple App", value: "vue-app" }
55
- ],
56
- initial: 0
57
- },
58
- {
59
- type: "select",
60
- name: "npmClient",
61
- message: "Pick Npm Client",
62
- choices: [
63
- { title: "npm", value: "npm" },
64
- { title: "cnpm", value: "cnpm" },
65
- { title: "tnpm", value: "tnpm" },
66
- { title: "yarn", value: "yarn" },
67
- { title: "pnpm", value: "pnpm" }
68
- ],
69
- initial: 4
70
- },
71
- {
72
- type: "select",
73
- name: "registry",
74
- message: "Pick Npm Registry",
75
- choices: [
76
- {
77
- title: "npm",
78
- value: "https://registry.npmjs.org/",
79
- selected: true
80
- },
81
- { title: "taobao", value: "https://registry.npmmirror.com" }
82
- ]
83
- }
84
- ], {
85
- onCancel() {
86
- process.exit(1);
87
+ onCancel() {
88
+ process.exit(1);
89
+ }
87
90
  }
88
- });
91
+ );
89
92
  npmClient = response.npmClient;
90
93
  registry = response.registry;
91
94
  appTemplate = response.appTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-umi",
3
- "version": "4.0.43",
3
+ "version": "4.0.44",
4
4
  "description": "create-umi",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/create-umi#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -25,7 +25,7 @@
25
25
  "test": "umi-scripts jest-turbo"
26
26
  },
27
27
  "dependencies": {
28
- "@umijs/utils": "4.0.43"
28
+ "@umijs/utils": "4.0.44"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"