mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-20 04:01:20 -08:00
refactor(site): [SITE-CONSOLE-01] restore typed console and lifecycle ownership
This commit is contained in:
1 parent
6cd2d0ffbe
commit
3dba82a453
29 files changed
+1884
-36
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import fs from 'node:fs'
|
||||
import process from 'node:process'
|
||||
import { generateConsole } from './site-vendor/console/build.ts'
|
||||
|
||||
assert(process.argv.slice(2).every(arg => arg === '--check'), 'Use yarn build:console [--check]')
|
||||
const candidate = await generateConsole(process.cwd())
|
||||
const output = 'docs/assets/js/console.js'
|
||||
if (process.argv.includes('--check'))
|
||||
assert.equal(fs.readFileSync(output, 'utf8'), candidate, 'Generated console drift')
|
||||
else fs.writeFileSync(output, candidate)
|
||||
console.log('Console TS entry and view generated/checked; 100 frozen vendor modules and Parcel runtime retained.')
|
||||
Reference in new issue
Block a user