-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
145 lines (145 loc) · 8.27 KB
/
Copy pathpackage.json
File metadata and controls
145 lines (145 loc) · 8.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "rest-express",
"version": "1.0.0",
"engines": {
"node": "24.20.0"
},
"type": "module",
"license": "MIT",
"overrides": {
"express": {
"path-to-regexp": "0.1.13",
"qs": "6.16.0"
},
"lodash": "4.18.1",
"postcss-selector-parser": "6.1.3",
"yaml": "2.9.0"
},
"scripts": {
"sonar": "npm run test:coverage && sonar-scanner -Dsonar.projectKey=unosim -Dsonar.sources=client/src,server,shared,scripts -Dsonar.tests=tests -Dsonar.host.url=http://localhost:9000 -Dsonar.token=$SONAR_TOKEN -Dsonar.qualitygate.wait=true -Dsonar.scm.exclusions.disabled=true",
"dev": "UNOSIM_EXAMPLES_SOURCE=ttbombadil/unosim-examples UNOSIM_EXAMPLES_REF=main UNOSIM_EXAMPLES_ALLOWED_HOSTS=api.github.com,raw.githubusercontent.com node scripts/start-local-dev.mjs --node-env=development",
"dev:e2e": "UNOSIM_EXAMPLES_SOURCE= UNOSIM_EXAMPLES_REF= ENABLE_TEST_ENDPOINTS=true DISABLE_RATE_LIMIT=true node scripts/start-local-dev.mjs --node-env=test",
"dev:full": "concurrently -n \"BACKEND,CLIENT\" -c \"bgBlue,bgMagenta\" \"npm run dev\" \"node scripts/wait-for-backend.mjs && npm run dev:client\"",
"dev:client": "vite",
"preview": "vite preview",
"build": "npm run build:client && npm run build:server && npm run build:worker && npm run build:copy-public",
"build:client": "vite build client/ --config vite.config.ts && npm run check:bundle",
"check:bundle": "node scripts/check-bundle-budget.mjs",
"build:server": "esbuild server/index.ts --platform=node --bundle --format=esm --packages=external --outfile=dist/index.js --banner:js=\"import { createRequire } from 'module'; const require = createRequire(import.meta.url);\" --alias:@shared=./shared",
"build:worker": "mkdir -p dist/workers && esbuild server/services/workers/compile-worker.ts --platform=node --bundle --format=esm --packages=external --outfile=dist/workers/compile-worker.js --banner:js=\"import { createRequire } from 'module'; const require = createRequire(import.meta.url);\" --alias:@shared=./shared",
"build:copy-public": "[ -d public ] && cp -r public dist/ || true",
"build:sandbox": "docker build -f Dockerfile.sandbox -t unosim-sandbox:latest .",
"start": "NODE_ENV=production node dist/index.js",
"check": "tsc --noEmit",
"check:node-version": "node scripts/check-node-version.mjs",
"check:docs": "node scripts/check-docs.mjs",
"check:raw-hex": "node scripts/check-raw-hex.cjs",
"lint:colors": "npm run check:raw-hex",
"test": "npm run test:unit",
"test:fast": "npm run test:unit",
"test:unit": "TEST_BUDGET_SUITE=unit TEST_BUDGET_WARN_MS=75000 TEST_BUDGET_FAIL_MS=90000 LOG_LEVEL=warn vitest run --project=unit-client --project=unit-node --project=unit-node-http --reporter=default --reporter=./scripts/test-budget-reporter.mjs",
"test:related": "TEST_BUDGET_SUITE=related TEST_BUDGET_MS=15000 LOG_LEVEL=warn vitest related --run --project=unit-client --project=unit-node --project=unit-node-http --reporter=default --reporter=./scripts/test-budget-reporter.mjs",
"test:integration": "TEST_BUDGET_SUITE=integration-toolchain TEST_BUDGET_MS=120000 LOG_LEVEL=warn vitest run --project=integration-toolchain --reporter=default --reporter=./scripts/test-budget-reporter.mjs",
"test:docker": "NODE_ENV=test UNOSIM_SERVER_MODE=docker UNOSIM_DOCKER_TEST_BYPASS_GATEWAY=1 TEST_BUDGET_SUITE=integration-docker TEST_BUDGET_MS=180000 DOCKER_SANDBOX_IMAGE=unosim-sandbox:latest SKIP_HEAVY_TESTS=false LOG_LEVEL=warn vitest run --project=integration-docker --reporter=default --reporter=./scripts/test-budget-reporter.mjs",
"test:deployment": "tsx scripts/deployment/gateway-deployment.ts",
"capacity:calibrate": "tsx scripts/calibrate-capacity.ts",
"test:security:inputs": "TEST_BUDGET_SUITE=security-inputs TEST_BUDGET_MS=15000 LOG_LEVEL=warn vitest run --project=unit-node --project=unit-node-http tests/shared/input-limits.test.ts tests/shared/websocket-direction-schemas.test.ts tests/server/security/safe-paths.test.ts tests/server/routes/compiler.routes.test.ts tests/integration/simulation-state-sequence.test.ts --reporter=default --reporter=./scripts/test-budget-reporter.mjs",
"test:tutor-quality": "TEST_BUDGET_SUITE=tutor-quality TEST_BUDGET_MS=15000 LOG_LEVEL=warn vitest run --project=unit-node tests/server/services/tutor tests/server/services/course-content --reporter=default --reporter=./scripts/test-budget-reporter.mjs",
"validate:tutor-course-content": "tsx scripts/validate-tutor-course-content.mjs",
"eval:tutor-quality:real": "tsx scripts/tutor-quality-real-provider-eval.ts",
"test:all": "npm run test:unit && npm run test:integration && npm run test:docker",
"test:watch": "LOG_LEVEL=info vitest --project=unit-client --project=unit-node --project=unit-node-http",
"test:coverage": "node scripts/coverage-guard.mjs prepare && TEST_BUDGET_SUITE=unit-coverage TEST_BUDGET_WARN_MS=75000 TEST_BUDGET_FAIL_MS=90000 LOG_LEVEL=warn vitest run --coverage --project=unit-client --project=unit-node --project=unit-node-http --reporter=default --reporter=./scripts/test-budget-reporter.mjs && node scripts/coverage-guard.mjs validate",
"test:debug": "LOG_LEVEL=debug vitest run --project=unit-client --project=unit-node --project=unit-node-http",
"test:ci": "npm run test:unit",
"test:e2e": "ARDUINO_CACHE_DIR=./server/arduino-cache playwright test",
"test:e2e:ci": "ARDUINO_CACHE_DIR=./server/arduino-cache playwright test && ./check-leaks.sh --cleanup",
"test:e2e:ui": "playwright test --ui",
"test:e2e:debug": "playwright test --debug",
"test:e2e:update": "npx playwright test --update-snapshots",
"test:load:50": "LOG_LEVEL=info vitest run --project=load --testNamePattern='Load Test: 50 Concurrent Clients'",
"test:load:100": "LOG_LEVEL=info vitest run --project=load --testNamePattern='Load Test: 100 Concurrent Clients'",
"test:load:200": "LOG_LEVEL=info vitest run --project=load --testNamePattern='Load Test: 200 Concurrent Clients'",
"lint": "eslint . --ext .ts,.tsx --fix",
"prepare": "husky"
},
"dependencies": {
"@radix-ui/react-alert-dialog": "^1.1.7",
"@radix-ui/react-checkbox": "^1.1.5",
"@radix-ui/react-dialog": "^1.1.7",
"@radix-ui/react-dropdown-menu": "^2.1.7",
"@radix-ui/react-menubar": "^1.1.16",
"@radix-ui/react-slot": "^1.2.0",
"@radix-ui/react-tabs": "^1.1.4",
"@radix-ui/react-toast": "^1.2.7",
"@radix-ui/react-tooltip": "^1.2.8",
"@tanstack/react-query": "^5.60.5",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"express": "^4.22.2",
"express-rate-limit": "^8.7.0",
"helmet": "^8.1.0",
"lucide-react": "^0.453.0",
"monaco-editor": "^0.53.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-resizable-panels": "^2.1.7",
"recharts": "^2.15.2",
"tailwind-merge": "^2.6.0",
"wouter": "^3.3.5",
"ws": "^8.21.3",
"yaml": "2.9.0",
"zod": "^3.24.2"
},
"devDependencies": {
"@commitlint/cli": "^20.4.1",
"@commitlint/config-conventional": "^20.4.1",
"@playwright/test": "^1.57.0",
"@tailwindcss/typography": "^0.5.20",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/express": "4.17.21",
"@types/node": "^22.12.0",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@types/ws": "^8.5.13",
"@typescript-eslint/eslint-plugin": "^8.56.0",
"@typescript-eslint/parser": "^8.56.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/ui": "^4.1.0",
"autoprefixer": "^10.4.20",
"concurrently": "^9.2.1",
"esbuild": "^0.25.0",
"eslint": "^10.0.1",
"eslint-plugin-unicorn": "^63.0.0",
"husky": "^9.1.7",
"jsdom": "^27.0.0",
"knip": "^5.86.0",
"lint-staged": "^16.2.7",
"postcss": "^8.5.27",
"prettier": "^3.8.1",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"terser": "^5.46.0",
"tsx": "^4.20.5",
"typescript": "^5.6.3",
"vite": "^5.4.19",
"vite-tsconfig-paths": "^6.0.5",
"vitest": "^4.1.0"
},
"optionalDependencies": {
"@rollup/rollup-darwin-arm64": "^4.59.0",
"bufferutil": "^4.0.8"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix"
],
"*.json": [
"prettier --write"
]
}
}