mirror of
https://github.com/remorses/gpuix.git
synced 2026-10-28 18:59:22 +08:00
Replace the per-example createRenderer / init / createRoot / startFrameLoop bootstrap with one render() call. chat and diff still guard on the entry point so tests can import the app component. Example scripts now run under bun --hot: - examples/package.json: counter, diff, native-text, chat - root package.json example:counter A save remounts React on the same window. useState resets. Do not add createRenderer() back to these files; a second init() would open another host. Session: ses_fd273542bffefho3Ygye0w4LIi
24 lines
548 B
JSON
24 lines
548 B
JSON
{
|
|
"name": "gpuix",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*",
|
|
"examples"
|
|
],
|
|
"scripts": {
|
|
"build": "bun run build:native && bun run build:react",
|
|
"build:native": "cd packages/native && bun run build",
|
|
"build:react": "cd packages/react && bun run build",
|
|
"example:counter": "cd examples && bun --hot counter.tsx",
|
|
"dev": "bun scripts/dev.ts"
|
|
},
|
|
"devDependencies": {
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.3.0"
|
|
},
|
|
"dependencies": {
|
|
"react": "^19.2.4",
|
|
"react-reconciler": "^0.33.0"
|
|
}
|
|
}
|