feat: add web deployment support

This commit is contained in:
Kang committed 2026-10-04 00:56:09 +08:00
1 parent 15922a5605
commit 5d1df9e237
238 files changed
+23777 -8879

No files matched your search

+5 -1
View File
@@ -41,7 +41,11 @@
"fmt:rust:check": "cargo fmt --manifest-path src-tauri/Cargo.toml -- --check",
"i18n:check": "prettier --check src/i18n/locales/*.json",
"i18n:fix": "prettier --write src/i18n/locales/*.json",
"postinstall": "node scripts/patch-xterm-webgl-clear-model.cjs && node scripts/patch-xterm-wide-char-selection.cjs && node scripts/patch-xterm-foreground-intense.cjs"
"postinstall": "node scripts/patch-xterm-webgl-clear-model.cjs && node scripts/patch-xterm-wide-char-selection.cjs && node scripts/patch-xterm-foreground-intense.cjs",
"build:web": "tsc && vite build",
"web:build:server": "cargo build --manifest-path src-tauri/crates/nyaterm-web/Cargo.toml --release --locked",
"web:serve": "cargo run --manifest-path src-tauri/crates/nyaterm-web/Cargo.toml --locked",
"test:web": "cargo test --manifest-path src-tauri/crates/nyaterm-web/Cargo.toml --locked"
},
"dependencies": {
"@codemirror/autocomplete": "^6.20.3",