Skip to content

Commit 92aef26

Browse files
committed
themes test
1 parent fe954dd commit 92aef26

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

scripts/ciTest.js

+22
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,28 @@ function main() {
9999
var bsbDir = cp.execSync(`bsb -where`, {cwd : path.join(__dirname, '..'), stdio : [0,1,2], encoding : 'utf8' })
100100

101101
console.log("BSBDIR:", bsbDir)
102+
103+
var themes = [
104+
"basic",
105+
"basic-reason",
106+
"generator",
107+
"minimal",
108+
"node",
109+
"react"
110+
]
111+
112+
if (themeTest) {
113+
114+
var themesDir = path.join(__dirname,'..','themes')
115+
fs.mkdirSync(themesDir)
116+
themes.forEach(function(theme){
117+
cp.execSync(`bsb -theme ${theme} -init ${theme}`,
118+
{cwd : themesDir, stdio:[0,1,2]})
119+
console.log('working on theme', theme)
120+
cp.execSync(`npm install && npm run build`, {cwd : path.join(themesDir,theme), stdio:[0,1,2]})
121+
122+
})
123+
}
102124
}
103125

104126

0 commit comments

Comments
 (0)