mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Run vercel-build programmatically
This commit is contained in:
parent
b78702c53b
commit
19f50c4d64
2 changed files with 21 additions and 1 deletions
20
scripts/vercel-build.js
Normal file
20
scripts/vercel-build.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
const { execSync } = require('child_process')
|
||||
|
||||
;(async () => {
|
||||
// scan-new-apps test-prebuild build-lists-and-api test-postbuild-api
|
||||
const steps = [
|
||||
'scan-new-apps',
|
||||
'test-prebuild',
|
||||
'build-lists-and-api',
|
||||
'test-postbuild-api'
|
||||
]
|
||||
|
||||
for ( const stepScriptName of steps ) {
|
||||
console.log( `Running step: ${ stepScriptName }` )
|
||||
|
||||
execSync( `npm run ${ stepScriptName }`, { stdio: 'inherit' } )
|
||||
}
|
||||
|
||||
|
||||
process.exit()
|
||||
})()
|
||||
Loading…
Add table
Add a link
Reference in a new issue