forked from ianstormtaylor/slate
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
162 lines (162 loc) · 11.3 KB
/
Copy pathpackage.json
File metadata and controls
162 lines (162 loc) · 11.3 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "slate-packages",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"build": "bun build:packages && bun build:next",
"build:next": "cd ./site && next build",
"build:packages": "turbo --filter \"./packages/*\" build --concurrency=1",
"bench:core:transaction:local": "bun ./scripts/benchmarks/core/current/transaction-execution.mjs",
"bench:core:normalization:local": "bun ./scripts/benchmarks/core/current/normalization.mjs",
"bench:core:query-ref-observation:local": "bun ./scripts/benchmarks/core/current/query-ref-observation.mjs",
"bench:core:node-transforms:local": "bun ./scripts/benchmarks/core/current/node-transforms.mjs",
"bench:core:text-selection:local": "bun ./scripts/benchmarks/core/current/text-selection.mjs",
"bench:core:editor-store:local": "bun ./scripts/benchmarks/core/current/editor-store.mjs",
"bench:core:refs-projection:local": "bun ./scripts/benchmarks/core/current/refs-projection.mjs",
"bench:core:history-retained-memory:local": "bun ./scripts/benchmarks/core/current/history-retained-memory.mjs",
"bench:core:clipboard-large-payload:local": "bun ./scripts/benchmarks/core/current/clipboard-large-payload.mjs",
"bench:core:collab-readiness:local": "bun ./scripts/benchmarks/core/current/collab-readiness.mjs",
"bench:core:yjs-collaboration:local": "bun ./scripts/benchmarks/core/current/yjs-collaboration.mjs",
"bench:core:normalization:compare:local": "bun ./scripts/benchmarks/core/compare/normalization.mjs",
"bench:core:observation:compare:local": "bun ./scripts/benchmarks/core/compare/observation.mjs",
"bench:core:huge-document:compare:local": "bun ./scripts/benchmarks/core/compare/huge-document.mjs",
"bench:core:rich-text-operations:compare:local": "bun ./scripts/benchmarks/core/compare/rich-text-operations.mjs",
"bench:history:compare:local": "bun ./scripts/benchmarks/core/compare/history.mjs",
"bench:react:rerender-breadth:local": "cd ./packages/slate-react && bun ../../scripts/benchmarks/browser/react/rerender-breadth.tsx",
"bench:react:huge-document-overlays:local": "cd ./packages/slate-react && bun ../../scripts/benchmarks/browser/react/huge-document-overlays.tsx",
"bench:react:runtime-node-fanout:local": "cd ./packages/slate-react && bun ../../scripts/benchmarks/browser/react/runtime-node-fanout.tsx",
"bench:react:active-typing:local": "bun ./scripts/benchmarks/browser/react/active-typing-breakdown.tsx",
"bench:react:pagination-virtualized-char-burst:local": "bun ./scripts/benchmarks/browser/react/pagination-virtualized-char-burst.mjs",
"bench:react:pagination-virtualized-real-editor-ops:local": "bun ./scripts/benchmarks/browser/react/pagination-virtualized-real-editor-ops.mjs",
"bench:react:huge-document:full:local": "bun ./scripts/benchmarks/browser/react/huge-document-full.mjs",
"bench:react:huge-document:legacy-compare:local": "bun ./scripts/benchmarks/browser/react/huge-document-legacy-compare.mjs",
"bench:react:huge-document:browser-trace:local": "bun ./scripts/benchmarks/browser/react/huge-document-browser-trace.mjs",
"bench:react:huge-document:slate-browser-trace:local": "bun ./scripts/benchmarks/browser/react/huge-document-slate-browser-trace.mjs",
"bench:react:huge-document:staged-keyboard-commands:local": "bun ./scripts/benchmarks/browser/react/huge-document-staged-keyboard-commands.mjs",
"bench:react:huge-document:cross-editor:local": "bun ./scripts/benchmarks/browser/react/huge-document-cross-editor.mjs",
"bench:browser:rich-text-replay-coverage:local": "bun ./scripts/benchmarks/browser/rich-text-replay-coverage.mjs",
"bench:slate:6038:local": "bun ./scripts/benchmarks/slate/6038-transaction-execution.mjs",
"bench:slate:5945:issue": "SLATE_CLIPBOARD_BENCH_ISSUE_TARGETS=1 bun ./scripts/benchmarks/slate/5945-large-plaintext-paste.mjs",
"bench:slate:5945:local": "bun ./scripts/benchmarks/slate/5945-large-plaintext-paste.mjs",
"changesetversion": "changeset version && bun install",
"check": "bun lint && bun typecheck && bun run test",
"check:full": "bun check && bun test:release-proof && bun test:integration-local",
"check:ci": "bun check && bun test:integration",
"clean": "turbo --filter \"./packages/*\" clean && rimraf './site/{.next,out,node_modules}' --glob",
"dev": "bun serve",
"dev:yjs": "bun --watch ./scripts/yjs/hocuspocus-server.ts",
"fix": "bun lint:fix",
"internal:release:next": "bun changesetversion && bun prerelease && changeset publish --tag next",
"lint": "biome check . && eslint .",
"lint:fix": "biome check . --fix",
"lint:release": "bun typecheck",
"lint:typescript": "bun typecheck",
"open": "open http://localhost:3100",
"playwright": "bun --filter slate-browser build && playwright test",
"setup:slate-browser": "playwright install",
"prerelease": "NODE_ENV=production bun build:packages && bun test && bun test:vitest && bun lint",
"release": "bun changesetversion && bun prerelease && changeset publish",
"release:experimental": "bun changesetversion && bun prerelease && changeset publish --tag experimental",
"release:latest": "bun changesetversion && bun prerelease && changeset publish",
"release:next": "bun changesetversion && bun prerelease && changeset publish --tag next",
"release:publish:experimental": "changeset publish --tag experimental",
"release:publish:latest": "changeset publish",
"release:publish:next": "changeset publish --tag next",
"serve": "cd ./site && next dev -p 3100",
"serve:playwright": "node ./scripts/serve-playwright.mjs",
"start:yjs": "bun ./scripts/yjs/hocuspocus-server.ts",
"test": "bun test:bun && bun test:vitest",
"test:bun": "bun test ./packages/slate/test ./packages/slate-history/test ./packages/slate-dom/test ./packages/slate-hyperscript/test ./packages/slate-yjs/test --path-ignore-patterns '' && bun --filter slate-browser test:core && bun --filter ./packages/slate-layout test",
"test:inspect": "bun test --inspect-brk",
"test:integration": "playwright install --with-deps && bun run playwright playwright/integration",
"test:integration-local:async": "node ./scripts/integration-local-async.mjs start",
"test:integration-local:failures": "node ./scripts/integration-local-async.mjs failures",
"test:integration-local:pickup": "node ./scripts/integration-local-async.mjs pickup",
"test:integration-local:status": "node ./scripts/integration-local-async.mjs status",
"test:integration-docker": "./playwright/docker/run-tests.sh",
"test:integration-local": "playwright install && bun run playwright playwright/integration",
"test:mobile-device-proof": "bun ./scripts/proof/mobile-device-proof.mjs",
"test:mobile-device-proof:raw": "SLATE_BROWSER_RAW_MOBILE_REQUIRED=1 bun ./scripts/proof/mobile-device-proof.mjs",
"test:release-discipline": "bun test ./packages/slate/test/public-surface-contract.ts ./packages/slate/test/public-field-hard-cut-contract.ts ./packages/slate/test/escape-hatch-inventory-contract.ts ./packages/slate/test/write-boundary-contract.ts ./packages/slate/test/leaf-lifecycle-contract.ts ./packages/slate/test/selection-rebase-contract.ts ./packages/slate/test/compat-alias-hard-cut-contract.ts ./packages/slate/test/editor-foundation-contract.ts ./packages/slate/test/core-benchmark-scripts-contract.ts ./packages/slate/test/release-scripts-contract.ts ./packages/slate-react/test/rendered-dom-shape-contract.tsx --bail 1",
"test:release-proof": "bun test:release-discipline && bun --filter slate-browser test:proof && bun test:mobile-device-proof",
"test:slate-browser": "bun --filter slate-browser test",
"test:slate-browser:core": "bun --filter slate-browser test:core",
"test:slate-browser:dom": "bun --filter slate-browser test:dom",
"test:slate-browser:selection": "bun --filter slate-browser test:selection",
"test:stress": "bun --filter slate-browser build && PLAYWRIGHT_RETRIES=0 playwright test playwright/stress/generated-editing.test.ts --project=chromium",
"test:stress:audit": "STRESS_AUDIT_PROJECTS=chromium STRESS_AUDIT_EXPECTED_PER_PROJECT=24 STRESS_AUDIT_MAX_AGE_MINUTES=30 node ./scripts/stress/audit-artifacts.mjs",
"test:stress:audit:desktop": "STRESS_AUDIT_EXPECTED_PER_PROJECT=24 node ./scripts/stress/audit-artifacts.mjs",
"test:stress:desktop": "bun --filter slate-browser build && PLAYWRIGHT_RETRIES=0 playwright test playwright/stress/generated-editing.test.ts $(node ./scripts/stress/project-args.mjs desktop)",
"test:stress:replay": "bun --filter slate-browser build && PLAYWRIGHT_RETRIES=0 playwright test playwright/stress/replay.test.ts --project=chromium",
"test:stress:replay:desktop": "bun --filter slate-browser build && PLAYWRIGHT_RETRIES=0 playwright test playwright/stress/replay.test.ts $(node ./scripts/stress/project-args.mjs desktop)",
"test:stress:replay:firefox": "bun --filter slate-browser build && PLAYWRIGHT_RETRIES=0 playwright test playwright/stress/replay.test.ts --project=firefox",
"test:stress:replay:webkit": "bun --filter slate-browser build && PLAYWRIGHT_RETRIES=0 playwright test playwright/stress/replay.test.ts --project=webkit",
"test:vitest": "cd ./packages/slate-react && bun test:vitest",
"typecheck": "bun typecheck:packages && bun typecheck:site && bun typecheck:root",
"typecheck:root": "tsc --project ./tsconfig.json --noEmit",
"typecheck:packages": "turbo --filter \"./packages/*\" typecheck --concurrency=1",
"typecheck:site": "cd ./site && tsc --project tsconfig.json --noEmit"
},
"devDependencies": {
"@biomejs/biome": "2.4.11",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@faker-js/faker": "^10.0.0",
"@happy-dom/global-registrator": "^20.9.0",
"@hocuspocus/extension-logger": "3.4.0",
"@hocuspocus/extension-redis": "3.4.0",
"@hocuspocus/provider": "3.4.0",
"@hocuspocus/server": "3.4.0",
"@playwright/test": "^1.52.0",
"@tailwindcss/postcss": "^4.3.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/is-url": "^1.2.32",
"@types/lodash": "^4.14.200",
"@types/node": "^20.8.7",
"@types/prismjs": "^1.26.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/parser": "^8.58.1",
"@slate/yjs": "workspace:*",
"bun-types": "1.3.12",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"eslint": "^10.2.0",
"eslint-plugin-react-hooks": "7.0.1",
"image-extensions": "^1.1.0",
"is-url": "^1.2.4",
"lodash": "^4.17.21",
"lucide-react": "^1.16.0",
"next": "^16.2.4",
"nuqs": "^2.8.9",
"postcss": "^8.5.15",
"prismjs": "^1.29.0",
"radix-ui": "^1.4.3",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"react-error-boundary": "^4.0.11",
"rimraf": "^5.0.5",
"serve-handler": "^6.1.7",
"shadcn": "^4.8.0",
"slate": "workspace:*",
"slate-browser": "workspace:*",
"slate-dom": "workspace:*",
"slate-history": "workspace:*",
"slate-hyperscript": "workspace:*",
"slate-layout": "workspace:*",
"slate-react": "workspace:*",
"tailwind-merge": "^3.6.0",
"tailwindcss": "^4.3.0",
"tsdown": "^0.16.6",
"turbo": "2.9.5",
"tw-animate-css": "^1.4.0",
"typescript": "6.0.3",
"ultracite": "7.4.4",
"y-protocols": "1.0.7",
"yjs": "13.6.30"
},
"packageManager": "bun@1.3.12"
}