jenkins测试

This commit is contained in:
aixianling
2023-03-16 10:03:40 +08:00
parent 9bf44c1284
commit 47d33a0f63

View File

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