@gx-design-vue/create-gx-cli 0.1.8 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/main.js +19 -16
- package/template-mobile-vant-cli/package.json +1 -1
package/package.json
CHANGED
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
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
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
|
-
|
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
|
}
|