Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
69 lines (69 loc) · 5.38 KB
/
Copy pathpackage.json
File metadata and controls
69 lines (69 loc) · 5.38 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
{
"name": "schmock",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"setup": "node scripts/setup-hooks.js",
"clean": "bun run clean:src && bun run clean:dist && bun run clean:buildinfo",
"clean:src": "node scripts/clean-generated.js",
"clean:dist": "rm -rf packages/*/dist",
"clean:buildinfo": "rm -f packages/*/tsconfig.tsbuildinfo",
"build": "bun run clean:src && bun run --filter @schmock/core build && bun run --filter @schmock/faker build && bun run --filter @schmock/express build && bun run --filter @schmock/angular build && bun run --filter @schmock/validation build && bun run --filter @schmock/query build && bun run --filter @schmock/openapi build && bun run --filter @schmock/cli build && bun run --filter @schmock/react build && bun run --filter @schmock/vue build && bun run --filter @schmock/devtools build && bun run --filter @schmock/schmock build",
"test": "bun run test:unit && bun run test:bdd",
"test:all": "bun run typecheck && bun run test:unit && bun run test:bdd && bun run test:integration",
"test:all:quiet": "bun run typecheck:quiet && bun run test:unit:quiet && bun run test:bdd:quiet && bun run test:integration:quiet",
"test:unit": "bun run --filter '*' test",
"test:unit:quiet": "bash -c 'set -o pipefail; bun run --filter \"*\" test --reporter=dot 2>&1 | grep -E \"^[·.F]+$|Test Files|Tests |Duration\"'",
"test:bdd": "bun run --filter '*' test:bdd",
"test:bdd:quiet": "bash -c 'set -o pipefail; bun run --filter \"*\" test:bdd --reporter=dot 2>&1 | grep -E \"^[·.F]+$|Test Files|Tests |Duration\"'",
"test:integration": "vitest run --config tests/integration/vitest.config.ts",
"test:integration:quiet": "bash -c 'set -o pipefail; vitest run --config tests/integration/vitest.config.ts --reporter=dot 2>&1 | grep -E \"^[·.F]+$|Test Files|Tests |Duration\"'",
"test:e2e": "vitest run --config tests/e2e/vitest.config.ts",
"test:e2e:quiet": "bash -c 'set -o pipefail; vitest run --config tests/e2e/vitest.config.ts --reporter=dot 2>&1 | grep -E \"^[·.F]+$|Test Files|Tests |Duration\"'",
"test:quiet": "bun run test:all:quiet",
"test:smoke": "bash scripts/smoke-tests/run-all.sh",
"test:consumer": "bash scripts/integration-tests/run-all.sh",
"lint": "bun run --filter '*' lint",
"lint:quiet": "bash -c 'set -o pipefail; bun run --filter \"*\" lint 2>&1 | tail -1'",
"lint:fix": "bun run --filter '*' lint:fix",
"build:quiet": "bash -c 'set -o pipefail; bun run build 2>&1 | tail -1'",
"typecheck:quiet": "bun run --filter @schmock/core build:types > /dev/null && bun run --filter @schmock/faker build:types > /dev/null && bun run --filter @schmock/express build:types > /dev/null && bun run --filter @schmock/angular build:types > /dev/null && bun run --filter @schmock/validation build:types > /dev/null && bun run --filter @schmock/query build:types > /dev/null && bun run --filter @schmock/openapi build:types > /dev/null && bun run --filter @schmock/cli build:types > /dev/null && bun run --filter @schmock/react build:types > /dev/null && bun run --filter @schmock/vue build:types > /dev/null && bun run --filter @schmock/devtools build:types > /dev/null && bun run --filter @schmock/schmock build:types > /dev/null && bun run typecheck:bdd > /dev/null",
"typecheck": "bun run --filter @schmock/core build:types && bun run --filter @schmock/faker build:types && bun run --filter @schmock/express build:types && bun run --filter @schmock/angular build:types && bun run --filter @schmock/validation build:types && bun run --filter @schmock/query build:types && bun run --filter @schmock/openapi build:types && bun run --filter @schmock/cli build:types && bun run --filter @schmock/react build:types && bun run --filter @schmock/vue build:types && bun run --filter @schmock/devtools build:types && bun run --filter @schmock/schmock build:types && bun run typecheck:bdd",
"typecheck:bdd": "tsc --noEmit -p tsconfig.tests.json",
"bench": "bun run benchmarks/handle-throughput.ts",
"bench:size": "bun run build && bun run benchmarks/bundle-size.ts",
"knip": "knip",
"knip:quiet": "knip --no-progress",
"eslint": "eslint",
"eslint:quiet": "eslint --quiet",
"test:pack": "bash scripts/check-release-candidate.sh",
"check:typescript-5-6": "node scripts/check-typescript-5-6.mjs",
"check:build-reproducibility": "node scripts/check-build-reproducibility.mjs",
"check:manifests": "node scripts/check-manifests.mjs",
"test:registry-scripts": "node --test scripts/check-manifests.test.mjs scripts/smoke-tests/registry-verification.test.mjs",
"publish": "bash scripts/publish.sh",
"check:publish": "bun run check:manifests && bun run test:registry-scripts && bun run test:release-scripts && bun run check:build-reproducibility && bun run test:pack",
"test:release-scripts": "node --test scripts/publish.test.mjs"
},
"devDependencies": {
"@amiceli/vitest-cucumber": "^7.0.0",
"@arethetypeswrong/cli": "0.18.5",
"@biomejs/biome": "2.5.12",
"@types/bun": "1.4.0",
"@types/express": "^5.0.6",
"@types/supertest": "^7.2.1",
"@typescript-eslint/eslint-plugin": "^8.69.0",
"@typescript-eslint/parser": "^8.69.0",
"@vitest/coverage-v8": "^4.1.11",
"eslint": "^10.9.1",
"express": "^5.2.1",
"fast-check": "^4.9.0",
"knip": "^6.34.0",
"publint": "0.3.24",
"supertest": "^7.2.2",
"typescript": "6.0.3",
"vitest": "^4.1.11"
}
}