Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
101 lines (101 loc) · 5.81 KB
/
Copy pathpackage.json
File metadata and controls
101 lines (101 loc) · 5.81 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
{
"name": "cf-moedict-webkit-neo",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"generate-c-index": "node commands/generateCIndex.js",
"predev": "vp run build-search-index && vp run build-pinyin-lookup",
"prebuild": "vp run build-search-index && vp run build-pinyin-lookup",
"build-search-index": "node scripts/build-search-index.mjs",
"build-pinyin-lookup": "node scripts/build-pinyin-lookup.mjs",
"build-reader-formats": "node scripts/build-reader-formats.mjs",
"dev": "vp dev",
"dev:remote": "VITE_CLOUDFLARE_REMOTE_DEV=1 vp dev",
"build": "tsc -b && vp build",
"lint": "vp lint .",
"lint:css": "stylelint \"data/assets/*.css\"",
"check:css-lint": "node scripts/check-css-lint-baseline.mjs",
"typecheck": "tsc -b --noEmit",
"typecheck:tsc": "tsc -b --noEmit",
"audit:contrast": "node scripts/audit-dark-contrast.mjs",
"refresh:prod-parity": "node scripts/refresh-prod-parity-baseline.mjs",
"smoke:sub-routes": "node scripts/smoke-sub-routes.mjs",
"twblg-pins:inject": "python3 scripts/inject-twblg-pinned-entries.py data/sources/twblg-overrides/pinned-no-definition.json data/dictionary/ptck",
"twblg-pins:check": "python3 scripts/inject-twblg-pinned-entries.py data/sources/twblg-overrides/pinned-no-definition.json data/dictionary/ptck --check",
"twblg-pins:verify-upstream": "node commands/verify-twblg-pins-upstream.mjs",
"check:data": "node scripts/check-dictionary-data.mjs",
"dictionary:inventory:update": "node scripts/check-dictionary-inventory.mjs --update",
"check:css-ids": "node scripts/check-legacy-css-ids.mjs",
"check:css-equivalence": "node scripts/check-legacy-css-equivalence.mjs",
"check:trs": "bun scripts/check-trs-bpmf.mjs",
"seed:fixtures": "bun tests/seed-fixtures.mjs",
"serve:e2e": "tsx tests/e2e/serve.ts",
"test": "vp run test:unit && vp run test:integration && vp run test:e2e",
"test:data-tools": "node tests/data-pipeline-checkers.test.mjs && python3 -m unittest discover -s tests/python -p 'test_*.py' && sh tests/test-upload-dictionary-guards.sh",
"test:unit": "vp test run --project unit",
"test:unit:watch": "vp test watch --project unit",
"test:integration": "vp test run --project integration",
"test:e2e": "playwright test --project=chromium",
"test:e2e:update": "playwright test --update-snapshots",
"test:e2e:visual": "playwright test --project=visual",
"test:e2e:visual:update": "playwright test --project=visual --update-snapshots",
"test:coverage": "rm -rf coverage && vp run test:unit --coverage && vp run test:integration --coverage --coverage.reportsDirectory=coverage/integration --coverage.reporter=text-summary --coverage.reporter=json --coverage.reporter=lcov --coverage.thresholds.statements=0 --coverage.thresholds.branches=0 --coverage.thresholds.functions=0 --coverage.thresholds.lines=0 && vp run test:coverage:e2e && node scripts/merge-coverage.mjs",
"test:coverage:e2e": "E2E_COVERAGE=1 vp run build && E2E_COVERAGE=1 E2E_SKIP_BUILD=1 playwright test --project=chromium",
"test:coverage:release": "vp test run --project unit tests/unit/release-deploy.test.ts tests/unit/release-rollback.test.ts tests/unit/wrangler-versions.test.ts tests/unit/smoke-probe.test.ts tests/unit/deployment-state.test.ts --coverage --coverage.include=scripts/release-deploy.mjs --coverage.include=scripts/release-rollback.mjs --coverage.include=scripts/lib/wrangler-versions.mjs --coverage.include=scripts/lib/smoke-probe.mjs --coverage.include=scripts/lib/deployment-state.mjs --coverage.reportsDirectory=coverage/release --coverage.thresholds.statements=100 --coverage.thresholds.functions=100 --coverage.thresholds.lines=100 --coverage.thresholds.branches=100",
"stryker": "stryker run",
"preview": "vp run build && wrangler dev",
"deploy": "env -u CLOUDFLARE_ENV vp run build && env -u CLOUDFLARE_ENV node scripts/release-publish.mjs && env -u CLOUDFLARE_ENV node scripts/release-deploy.mjs",
"deploy:staging": "CLOUDFLARE_ENV=staging vp run build && CLOUDFLARE_ENV=staging node scripts/release-publish.mjs && CLOUDFLARE_ENV=staging node scripts/release-deploy.mjs",
"deploy:rollback": "env -u CLOUDFLARE_ENV node scripts/release-rollback.mjs",
"deploy:rollback:staging": "CLOUDFLARE_ENV=staging node scripts/release-rollback.mjs",
"deploy:publish-only": "env -u CLOUDFLARE_ENV vp run build && env -u CLOUDFLARE_ENV node scripts/release-publish.mjs",
"deploy:publish-only:staging": "CLOUDFLARE_ENV=staging vp run build && CLOUDFLARE_ENV=staging node scripts/release-publish.mjs",
"prepare": "vp config"
},
"dependencies": {
"@cf-wasm/resvg": "^0.1.24",
"fuse.js": "^7.1.0",
"react": "^19.1.1",
"react-dom": "^19.1.1",
"react-router-dom": "^7.13.1"
},
"devDependencies": {
"@cloudflare/vite-plugin": "^1.44.0",
"@playwright/test": "^1.59.1",
"@stryker-mutator/core": "^9.6.1",
"@stryker-mutator/vitest-runner": "^9.6.1",
"@types/node": "^24.7.2",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react": "^5.0.0",
"@vitest/coverage-v8": "4.1.10",
"happy-dom": "^20.9.0",
"istanbul-lib-coverage": "^3.2.2",
"istanbul-lib-report": "^3.0.1",
"istanbul-reports": "^3.2.0",
"miniflare": "^4.20260708.1",
"postcss": "^8.5.16",
"stylelint": "^17.14.0",
"stylelint-config-standard": "^40.0.0",
"tsx": "^4.21.0",
"typescript": "^7.0.2",
"v8-to-istanbul": "^9.3.0",
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.4",
"vite-plus": "0.2.4",
"vitest": "4.1.11",
"wrangler": "^4.110.0"
},
"overrides": {
"undici": "^7.24.0",
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.4",
"vitest": "4.1.11"
},
"devEngines": {
"packageManager": {
"name": "bun",
"version": "1.3.14",
"onFail": "download"
}
}
}