refactor: more comprehensive dev and prod env isolation and build process

This commit is contained in:
pk5ls20
2024-11-16 06:10:36 +08:00
parent e98910c9ff
commit 609e83a824
18 changed files with 62 additions and 3995 deletions

View File

@@ -4,9 +4,9 @@
"type": "module",
"version": "4.0.3",
"scripts": {
"build:framework": "vite build --mode framework",
"build:shell": "vite build --mode shell",
"build:webui": "cd ./src/webui && vite build",
"build:framework": "npm run build:webui && vite build --mode framework",
"build:shell": "npm run build:webui && vite build --mode shell",
"build:webui": "cd napcat.webui && vite build",
"lint": "eslint --fix src/**/*.{js,ts}",
"depend": "cd dist && npm install --omit=dev"
},
@@ -53,4 +53,4 @@
"qrcode-terminal": "^0.12.0",
"fluent-ffmpeg": "^2.1.2"
}
}
}