chore: rename dev:vite task to dev:server

This commit is contained in:
Sam Chau
2026-01-19 19:05:34 +10:30
parent fc56a67b28
commit 9a925b19f1
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@
},
"tasks": {
"dev": "deno run -A scripts/dev.ts",
"dev:vite": "DENO_ENV=development PORT=6969 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 deno run -A npm:vite dev",
"dev:server": "DENO_ENV=development PORT=6969 HOST=0.0.0.0 APP_BASE_PATH=./dist/dev PARSER_HOST=localhost PARSER_PORT=5000 deno run -A npm:vite dev",
"dev:parser": "cd src/services/parser && dotnet watch run --urls http://localhost:5000",
"build": "APP_BASE_PATH=./dist/build deno run -A npm:vite build && deno compile --no-check --allow-net --allow-read --allow-write --allow-env --allow-ffi --allow-run --allow-sys --target x86_64-unknown-linux-gnu --output dist/build/profilarr dist/build/mod.ts",
"build:windows": "APP_BASE_PATH=./dist/build deno run -A npm:vite build && deno compile --no-check --allow-net --allow-read --allow-write --allow-env --allow-ffi --allow-run --allow-sys --target x86_64-pc-windows-msvc --output dist/windows/profilarr.exe dist/build/mod.ts",

View File

@@ -44,7 +44,7 @@ async function runParser() {
return process.status;
}
async function runVite() {
async function runServer() {
const cmd = new Deno.Command('deno', {
args: ['run', '-A', 'npm:vite', 'dev'],
env: {
@@ -74,4 +74,4 @@ console.log(`${colors.parser}[parser]${colors.reset} Starting .NET parser servic
console.log(`${colors.server}[server]${colors.reset} Starting Vite dev server...`);
console.log('');
await Promise.all([runParser(), runVite()]);
await Promise.all([runParser(), runServer()]);