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'),