Fix theme support and improve tooling
- Fix ITheme property: selection -> selectionBackground (ghostty-web compat) - Add dynamic body background color matching theme - Add THEME_BACKGROUNDS mapping in local_server.py - Add tsconfig.json for TypeScript type checking - Update Makefile to use bun run for all frontend commands - Add typecheck script to package.json (make build now typechecks) - Add detailed console tracing for theme debugging - Store fontFamily/fontSize in WebTerminal class for cell measurement v0.6.5
This commit is contained in:
+3
-1
@@ -9,8 +9,10 @@
|
||||
"typescript": "^5.7.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --minify --target=browser && cp node_modules/ghostty-web/ghostty-vt.wasm src/textual_webterm/static/js/",
|
||||
"build": "bun run typecheck && bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --minify --target=browser && cp node_modules/ghostty-web/ghostty-vt.wasm src/textual_webterm/static/js/",
|
||||
"build:fast": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --minify --target=browser",
|
||||
"watch": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --watch --target=browser",
|
||||
"typecheck": "bun x tsc --noEmit -p tsconfig.json",
|
||||
"copy-wasm": "cp node_modules/ghostty-web/ghostty-vt.wasm src/textual_webterm/static/js/"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user