- Install @xterm/xterm, @xterm/addon-canvas, @xterm/addon-fit, @tauri-apps/api - TerminalPane: xterm.js with Catppuccin Mocha theme, auto-fit, resize observer - PTY bridge: Tauri invoke wrappers + event listeners for data/exit - Bidirectional streaming: keyboard input -> PTY write, PTY output -> xterm write - 100ms debounced resize propagation to PTY backend
30 lines
782 B
JSON
30 lines
782 B
JSON
{
|
|
"name": "bterminal-v2",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"check": "svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json",
|
|
"tauri": "cargo tauri",
|
|
"tauri:dev": "cargo tauri dev",
|
|
"tauri:build": "cargo tauri build"
|
|
},
|
|
"devDependencies": {
|
|
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
"@tsconfig/svelte": "^5.0.6",
|
|
"@types/node": "^24.10.1",
|
|
"svelte": "^5.45.2",
|
|
"svelte-check": "^4.3.4",
|
|
"typescript": "~5.9.3",
|
|
"vite": "^7.3.1"
|
|
},
|
|
"dependencies": {
|
|
"@tauri-apps/api": "^2.10.1",
|
|
"@xterm/addon-canvas": "^0.7.0",
|
|
"@xterm/addon-fit": "^0.11.0",
|
|
"@xterm/xterm": "^6.0.0"
|
|
}
|
|
}
|