feat: add remote app functionality and environment configuration

- Introduced a new HTML file for the light code demo.
- Added TypeScript definitions for environment variables.
- Implemented remote app logic for both browser and node environments.
- Configured Vite to load environment variables and define KEVISUAL_TOKEN.
- Updated README with relevant information about the project structure and usage.
This commit is contained in:
2026-02-05 14:25:54 +08:00
parent d15a658466
commit 63d8ab8ff0
10 changed files with 793 additions and 8 deletions

View File

@@ -4,7 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"pub": "ev deploy . -v 0.0.1 -k light-code-demo -u"
"pub": "ev deploy . -v 0.0.1 -k light-code-demo -u",
"browser": "vite",
"bun": "bun --watch src/remote/node.ts"
},
"app": {
"type": "script-app"
@@ -17,11 +19,14 @@
"dependencies": {
"@kevisual/noco": "^0.0.10",
"@kevisual/router": "^0.0.70",
"vite": "^7.3.1",
"ws": "npm:@kevisual/ws"
},
"devDependencies": {
"@kevisual/remote-app": "^0.0.4",
"@types/bun": "^1.3.8",
"@types/node": "^25.2.0",
"@types/ws": "^8.18.1"
"@types/ws": "^8.18.1",
"dotenv": "^17.2.3"
}
}