jenkins测试
This commit is contained in:
@@ -14,6 +14,7 @@ const saveApps = app => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const getFileInfo = (app, file) => {
|
const getFileInfo = (app, file) => {
|
||||||
|
console.log(app, file)
|
||||||
let vue = fs.readFileSync(file).toString()
|
let vue = fs.readFileSync(file).toString()
|
||||||
if (/appName/.test(vue)) {
|
if (/appName/.test(vue)) {
|
||||||
let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1')
|
let appName = vue.replace(/[\s\S]*(appName:.+),[\s\S]*/gm, '$1')
|
||||||
@@ -47,7 +48,7 @@ const start = () => {
|
|||||||
return getFileInfo(app, file)
|
return getFileInfo(app, file)
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
findPages('src/apps', file => {
|
findPages('./src/apps', file => {
|
||||||
if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) {
|
if (/.+\\App[^\\]+\\[^\\]+\.vue/g.test(file)) {
|
||||||
let app = {
|
let app = {
|
||||||
name: file.replace(/.*\\([^\\]+).vue/g, '$1'),
|
name: file.replace(/.*\\([^\\]+).vue/g, '$1'),
|
||||||
|
|||||||
Reference in New Issue
Block a user