From 47d33a0f6310adfbcc73f2e05bc5483874e6add5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 16 Mar 2023 10:03:40 +0800 Subject: [PATCH] =?UTF-8?q?jenkins=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/sync.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/sync.js b/bin/sync.js index 62d5006b..fa85aae7 100644 --- a/bin/sync.js +++ b/bin/sync.js @@ -14,6 +14,7 @@ const saveApps = app => { } } const getFileInfo = (app, file) => { + console.log(app, file) let vue = fs.readFileSync(file).toString() if (/appName/.test(vue)) { let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1') @@ -47,7 +48,7 @@ const start = () => { return getFileInfo(app, file) } }), - findPages('src/apps', file => { + findPages('./src/apps', file => { if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) { let app = { name: file.replace(/.*\\([^\\]+).vue/g, '$1'),