This commit is contained in:
Loren Norman 2025-08-22 16:36:19 -04:00
parent 76393f78c3
commit e09f49a345

View file

@ -6,18 +6,17 @@ import { promisify } from 'node:util'
const execAsync = promisify(exec)
// run a clean build, wait for it to complete
// run a clean documentation build, wait for it to complete
console.log("Building docs from scratch...")
spawnSync("node", ["export.js", "docs", "skipImages"], { stdio: 'inherit' })
console.log("Done")
spawnSync("node", ["export.js", "docs"], { stdio: 'inherit' })
// start the incremental build
// start the file watcher and incremental builder
console.log("Starting incremental builder and file watcher...")
const docBuilder = spawn("node", ["--watch-path=./app", "export.js", "docs-incremental"], { stdio: 'inherit' })
docBuilder.on('error', err => console.log('Builder Error:', err))
docBuilder.on('exit', code => console.log('Builder Exited', code === 0 ? "Cleanly" : `With Error Code ${code}`))
// start the docs server
// start the Vitepress docs dev server
console.log("Starting Vitepress docs server...")
const docServer = spawn("npm", ["run", "docs:dev"], { stdio: 'inherit' })
docServer.on('error', err => console.log('Server Error:', err))