Simplify dev scripts (#294)

* Update scripts

* Update FE build
This commit is contained in:
Louis Knight-Webb
2025-07-20 17:45:52 +01:00
committed by GitHub
parent 2e8e9d978b
commit ee9005b260
5 changed files with 14 additions and 51 deletions

View File

@@ -3,24 +3,17 @@
"version": "0.0.54",
"private": true,
"scripts": {
"check": "npm run frontend:check && npm run backend:check",
"dev": "export FRONTEND_PORT=$(node scripts/setup-dev-environment.js frontend) && export BACKEND_PORT=$(node scripts/setup-dev-environment.js backend) && concurrently \"npm run backend:dev:watch\" \"npm run frontend:dev\"",
"build": "npm run frontend:build && npm run backend:build",
"build:single": "npm run frontend:build && npm run backend:build:single",
"build:npm": "./build-npm-package.sh",
"test:npm": "./test-npm-package.sh",
"frontend:dev": "cd frontend && npm run dev -- --port ${FRONTEND_PORT:-3000} --open",
"frontend:build": "cd frontend && npm run build",
"cargo": "node scripts/cargo.js",
"frontend:check": "cd frontend && npm run check",
"backend:dev": "BACKEND_PORT=$(node scripts/setup-dev-environment.js backend) npm run backend:dev:watch",
"backend:dev:watch": "DISABLE_WORKTREE_ORPHAN_CLEANUP=1 npm run cargo -- watch -w backend -x 'run --manifest-path backend/Cargo.toml'",
"backend:build": "npm run cargo -- build --release --manifest-path backend/Cargo.toml && npm run cargo -- build --release --bin mcp_task_server --manifest-path backend/Cargo.toml",
"backend:build:single": "npm run cargo -- build --release --manifest-path backend/Cargo.toml",
"backend:run": "npm run cargo -- run --manifest-path backend/Cargo.toml",
"backend:test": "npm run cargo -- test --lib",
"backend:check": "cargo check",
"backend:dev:watch": "DISABLE_WORKTREE_ORPHAN_CLEANUP=1 cargo -- watch -w backend -x 'run --manifest-path backend/Cargo.toml'",
"generate-types": "cd backend && cargo run --bin generate_types",
"generate-types:check": "cd backend && cargo run --bin generate_types -- --check",
"prepare-db": "node scripts/prepare-db.js",
"dev:clear-ports": "node scripts/setup-dev-environment.js clear"
"prepare-db": "node scripts/prepare-db.js"
},
"devDependencies": {
"concurrently": "^8.2.2",