mirror of
https://github.com/remorses/gpuix.git
synced 2026-10-29 03:04:52 +08:00
`bunx disktree [dir]` opens the treemap on a folder, the current directory, or `/`. Published as disktree@0.1.0. - moved from examples/ to a `disktree` workspace package: src/app.tsx (store + view), src/cli.tsx (bin), src/core.ts, src/scan-worker.ts - scan runs on a pool of worker threads with sync lstat, like the Rust original on rayon; the frontier is handed back after 400 dirs so deep trees spread across workers. Full disk here: 24.5M files in 150 s, no stall - skips iCloud dataless folders (SF_DATALESS via bun:ffi lstat), like the Rust scanner; listing them made macOS download them and stalled the scan - keeps the 12 largest files per directory, folds the rest into one "N smaller files" tile - store lives on globalThis so `bun --hot` remounts instead of starting a second full scan - scan progress bar uses used disk space as the total when scanning a volume root - lighter pastel tiles at 90% opacity Session: ses_f1cc78bbbffeiqA1qhn3vB0pzN
34 lines
870 B
JSON
34 lines
870 B
JSON
{
|
|
"name": "gpuix",
|
|
"private": true,
|
|
"license": "Apache-2.0",
|
|
"workspaces": [
|
|
"cli",
|
|
"packages/*",
|
|
"examples",
|
|
"example-app",
|
|
"disktree"
|
|
],
|
|
"scripts": {
|
|
"build": "bun run build:native && bun run build:react && bun run build:solid",
|
|
"build:native": "cd packages/native && bun run build",
|
|
"build:react": "cd packages/react && bun run build",
|
|
"build:solid": "cd packages/solid && bun run build",
|
|
"example:counter": "cd examples && bun --hot counter.tsx",
|
|
"dev": "bun scripts/dev.ts",
|
|
"web": "bun scripts/web.ts",
|
|
"web:wasm": "bun scripts/web.ts --build-only"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.4.0",
|
|
"react-refresh": "^0.18.0",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.0.18"
|
|
},
|
|
"dependencies": {
|
|
"react": "^19.2.4",
|
|
"react-reconciler": "^0.33.0"
|
|
}
|
|
}
|