@gx-design-vue/create-gx-cli 0.1.8 → 0.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/create-gx-cli",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "license": "MIT",
5
5
  "description": "a cli to bootstrap gx project",
6
6
  "main": "src/index.js",
package/src/main.js CHANGED
@@ -25,10 +25,6 @@ const gitRepositoryList = [
25
25
  url: 'https://github.com/gx12358/vue3-antd-admin.git',
26
26
  }
27
27
  ]
28
- },
29
- {
30
- name: 'gx-design-thin',
31
- url: 'https://gitee.com/gx12358/gx-admin-thin.git'
32
28
  }
33
29
  ]
34
30
 
@@ -150,17 +146,19 @@ export async function createProject(options) {
150
146
  download(downloadGit.url, root, options.projectName)
151
147
  }
152
148
  } else {
153
- const tasks = new Listr(
154
- [
155
- {
156
- title: '项目创建',
157
- task: () => copyTemplateFiles(templateDir, root)
158
- },
159
- options.template !== 'mobile-vant-html' ? {
160
- title: '初始化项目',
161
- task: () => editPackageJson(root, options.projectName || getProjectName(options.projectName))
162
- } : {}
163
- ],
149
+ const listr = [
150
+ {
151
+ title: '项目创建',
152
+ task: () => copyTemplateFiles(templateDir, root)
153
+ },
154
+ ]
155
+ if (options.template !== 'mobile-vant-html') {
156
+ listr.push({
157
+ title: '初始化项目',
158
+ task: () => editPackageJson(root, options.projectName || getProjectName(options.projectName))
159
+ })
160
+ }
161
+ const tasks = new Listr(listr,
164
162
  {
165
163
  exitOnError: false
166
164
  }
@@ -168,7 +166,12 @@ export async function createProject(options) {
168
166
 
169
167
  await tasks.run()
170
168
 
171
- doneLog(cwd, root)
169
+ if (options.template !== 'mobile-vant-html') {
170
+ doneLog(cwd, root)
171
+ } else {
172
+ console.log(chalk.blueBright(`init success`))
173
+
174
+ }
172
175
  }
173
176
  return true
174
177
  }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@gx-design-vue/pro-hooks": "^0.2.0-beta.19",
14
- "@gx-design-vue/pro-utils": "^0.2.0-beta.26",
14
+ "@gx-design-vue/pro-utils": "^0.2.0-beta.27",
15
15
  "@vueuse/core": "^10.7.2",
16
16
  "@vueuse/shared": "^10.7.2",
17
17
  "axios": "^1.6.7",