315b87eefe
- package.json: build script now copies ghostty-vt.wasm after bundling - Add copy-wasm script for standalone WASM copy - Makefile: bundle-watch copies WASM before watching - Makefile: bundle-clean removes WASM file too - Fix bun.lockb -> bun.lock in clean target
17 lines
671 B
JSON
17 lines
671 B
JSON
{
|
|
"name": "textual-webterm-frontend",
|
|
"private": true,
|
|
"type": "module",
|
|
"dependencies": {
|
|
"ghostty-web": "^0.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"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/",
|
|
"watch": "bun build src/textual_webterm/static/js/terminal.ts --outfile=src/textual_webterm/static/js/terminal.js --watch --target=browser",
|
|
"copy-wasm": "cp node_modules/ghostty-web/ghostty-vt.wasm src/textual_webterm/static/js/"
|
|
}
|
|
}
|