()
| 28 | } |
| 29 | |
| 30 | function buildProject() { |
| 31 | console.log('Building project...'); |
| 32 | const result = spawnSync('node', [STENCIL_BIN, 'build'], { |
| 33 | cwd: __dirname, |
| 34 | stdio: 'inherit', |
| 35 | }); |
| 36 | if (result.status !== 0) { |
| 37 | console.error('Build failed'); |
| 38 | process.exit(1); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | function startServer() { |
| 43 | return new Promise((resolve) => { |