/
githubmirror
/
pixijs
Обзор
Документация
Войти
/
githubmirror
/
pixijs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
scripts/build-status.mjs
33 строки
823 B
Mat Groves
chore: Add PixiJS development playground (#11878)
12 фев 2026, 18:26
Не верифицирован
12 фев 2026, 18:26
d0c73cf
Код
Авторство
О чём код?
#!/usr/bin/env node /** * Build status helper - writes build status to a file for the playground to read * Usage: node scripts/build-status.mjs start|done */ import { writeFileSync } from 'fs'; import { dirname, resolve } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(fileURLToPath(import.meta.url)); const statusFile = resolve(__dirname, '../.build-status.json'); const status = process.argv[2]; if (status === 'start') { writeFileSync(statusFile, JSON.stringify({ status: 'compiling', startedAt: Date.now() })); } else if (status === 'done') { writeFileSync(statusFile, JSON.stringify({ status: 'ready', completedAt: Date.now() })); } else { console.error('Usage: node scripts/build-status.mjs <start|done>'); process.exit(1); }