产品库工程目录调整

This commit is contained in:
aixianling
2021-11-17 17:13:52 +08:00
parent 9ebcd19f0a
commit eea22bacc7
6 changed files with 37 additions and 35 deletions

View File

@@ -58,15 +58,22 @@ const start = () => {
easycom: {
"^u-(.*)": "@/uview/components/u-$1/u-$1.vue"
},
pages: [],
pages: [
{path: 'pages/loading'},
{path: 'pages/login'}
],
globalStyle: {
pageOrientation: "auto",
navigationStyle: "custom"
}
}
findApp('src/pages', file => {
if (/.*\\(.+)\.vue/g.test(file)) {
json.pages.push({path: file.replace(/^src\\(.*).vue/g, '$1').replace(/\\/g,'/')})
findApp('src/apps', file => {
if (/.*\\.+\\App[^\\]+\.vue/g.test(file)) {
let app = {
name: file.replace(/.*\\([^\\]+).vue/g, '$1'),
path: file.replace(/^src\\(.*).vue/g, '$1').replace(/\\/g, '/')
}
json.pages.push(app)
}
}).then(() => {
fsExtra.outputJson('src/pages.json', json, () => {