forked from facebook/lexical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
186 lines (186 loc) · 11.9 KB
/
package.json
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"name": "@lexical/monorepo",
"description": "Lexical is an extensible text editor framework that provides excellent reliability, accessibility and performance.",
"version": "0.13.1",
"license": "MIT",
"private": true,
"workspaces": [
"packages/*"
],
"engines": {
"npm": ">=8.2.3",
"yarn": ">=1"
},
"engineStrict": true,
"scripts": {
"start": "cross-env NODE_ENV=development concurrently \"npm:collab\" \"npm run dev --prefix packages/lexical-playground\"",
"start:website": "npm run start --prefix packages/lexical-website -- --port 3001",
"start:playground": "npm run start-test-server",
"dev": "npm run dev --prefix packages/lexical-playground",
"start-test-server": "npm run preview --prefix packages/lexical-playground -- --port 4000",
"build": "node scripts/build.js",
"build-prod": "npm run clean && npm run build -- --prod",
"build-playground-prod": "npm run build-prod && npm run build-prod --prefix packages/lexical-playground",
"build-release": "npm run build-prod -- --release",
"build-www": "npm run clean && npm run build -- --www && npm run build -- --www --prod && npm run prepare-www",
"clean": "node scripts/clean.js",
"extract-codes": "node scripts/build.js --codes",
"flow": "node ./scripts/check-flow-types.js",
"tsc": "tsc",
"tsc-watch": "tsc -w",
"collab": "cross-env HOST=localhost PORT=1234 npx y-websocket-server",
"validation": "npx ts-node --cwdMode packages/lexical-playground/src/server/validation.ts",
"test-unit": "jest --selectProjects unit --testPathPattern",
"test-unit-watch": "npm run test-unit -- --watch --coverage=''",
"test-e2e-chromium": "cross-env E2E_BROWSER=chromium playwright test --project=\"chromium\"",
"test-e2e-firefox": "cross-env E2E_BROWSER=firefox playwright test --project=\"firefox\"",
"test-e2e-webkit": "cross-env E2E_BROWSER=webkit playwright test --project=\"webkit\"",
"test-e2e-plain-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=plain-text playwright test --project=\"chromium\"",
"test-e2e-plain-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=plain-text playwright test --project=\"firefox\"",
"test-e2e-plain-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=plain-text playwright test --project=\"webkit\"",
"test-e2e-legacy-chromium": "cross-env E2E_BROWSER=chromium E2E_EVENTS_MODE=legacy-events playwright test --project=\"chromium\"",
"test-e2e-legacy-firefox": "cross-env E2E_BROWSER=firefox E2E_EVENTS_MODE=legacy-events playwright test --project=\"firefox\"",
"test-e2e-legacy-webkit": "cross-env E2E_BROWSER=webkit E2E_EVENTS_MODE=legacy-events playwright test --project=\"webkit\"",
"test-e2e-collab-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"chromium\"",
"test-e2e-collab-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"firefox\"",
"test-e2e-collab-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"webkit\"",
"test-e2e-prod-chromium": "cross-env E2E_BROWSER=chromium E2E_PORT=4000 playwright test --project=\"chromium\"",
"test-e2e-collab-prod-chromium": "cross-env E2E_BROWSER=chromium E2E_PORT=4000 E2E_EDITOR_MODE=rich-text-with-collab playwright test --project=\"chromium\"",
"test-e2e-ci-chromium": "npm run prepare-ci && cross-env E2E_PORT=4000 npm run test-e2e-chromium",
"test-e2e-ci-firefox": "npm run prepare-ci && cross-env E2E_PORT=4000 npm run test-e2e-firefox",
"test-e2e-ci-webkit": "npm run prepare-ci && cross-env E2E_PORT=4000 npm run test-e2e-webkit",
"test-e2e-collab-ci-chromium": "npm run prepare-ci && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"npm run collab\" \"npm run test-e2e-collab-chromium\"",
"test-e2e-collab-ci-firefox": "npm run prepare-ci && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"npm run collab\" \"npm run test-e2e-collab-firefox\"",
"test-e2e-collab-ci-webkit": "npm run prepare-ci && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"npm run collab\" \"npm run test-e2e-collab-webkit\"",
"test-e2e-prod-ci-chromium": "npm run prepare-ci-prod && cross-env E2E_PORT=4000 npm run test-e2e-prod-chromium",
"test-e2e-collab-prod-ci-chromium": " npm run prepare-ci-prod && cross-env E2E_PORT=4000 concurrently -k -s \"first\" \"npm run collab\" \"npm run test-e2e-collab-prod-chromium\"",
"debug-run-all": "npm-run-all debug-test-e2e-*",
"run-all": "npm-run-all test-e2e-*",
"debug-test-e2e": "cross-env playwright test --debug",
"debug-test-e2e-chromium": "cross-env E2E_BROWSER=chromium playwright test --debug --project=\"chromium\"",
"debug-test-e2e-prod-chromium": "cross-env E2E_BROWSER=chromium E2E_PORT=4173 playwright test --debug --project=\"chromium\"",
"debug-test-e2e-firefox": "cross-env E2E_BROWSER=firefox playwright test --debug --project=\"firefox\"",
"debug-test-e2e-webkit": "cross-env E2E_BROWSER=webkit playwright test --debug --project=\"webkit\"",
"debug-test-e2e-legacy": "cross-env playwright test --debug",
"debug-test-e2e-legacy-chromium": "cross-env E2E_BROWSER=chromium E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"chromium\"",
"debug-test-e2e-legacy-firefox": "cross-env E2E_BROWSER=firefox E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"firefox\"",
"debug-test-e2e-legacy-webkit": "cross-env E2E_BROWSER=webkit E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"webkit\"",
"debug-test-e2e-collab": "cross-env E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug",
"debug-test-e2e-collab-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug --project=\"chromium\"",
"debug-test-e2e-collab-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug --project=\"firefox\"",
"debug-test-e2e-collab-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=rich-text-with-collab playwright test --debug --project=\"webkit\"",
"debug-test-e2e-collab-legacy": "cross-env E2E_EDITOR_MODE=rich-text-with-collab E2E_EVENTS_MODE=legacy-events playwright test --debug",
"debug-test-e2e-collab-legacy-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=rich-text-with-collab E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"chromium\"",
"debug-test-e2e-collab-legacy-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=rich-text-with-collab E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"firefox\"",
"debug-test-e2e-collab-legacy-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=rich-text-with-collab E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"webkit\"",
"debug-test-e2e-plain": "cross-env E2E_EDITOR_MODE=plain-text playwright test --debug",
"debug-test-e2e-plain-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=plain-text playwright test --debug --project=\"chromium\"",
"debug-test-e2e-plain-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=plain-text playwright test --debug --project=\"firefox\"",
"debug-test-e2e-plain-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=plain-text playwright test --debug --project=\"webkit\"",
"debug-test-e2e-plain-legacy": "cross-env E2E_EDITOR_MODE=plain-text E2E_EVENTS_MODE=legacy-events playwright test --debug",
"debug-test-e2e-plain-legacy-chromium": "cross-env E2E_BROWSER=chromium E2E_EDITOR_MODE=plain-text E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"chromium\"",
"debug-test-e2e-plain-legacy-firefox": "cross-env E2E_BROWSER=firefox E2E_EDITOR_MODE=plain-text E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"firefox\"",
"debug-test-e2e-plain-legacy-webkit": "cross-env E2E_BROWSER=webkit E2E_EDITOR_MODE=plain-text E2E_EVENTS_MODE=legacy-events playwright test --debug --project=\"webkit\"",
"debug-test-unit": "node --inspect-brk node_modules/.bin/jest --runInBand --collectCoverage=false",
"lint": "eslint ./",
"prettier": "prettier --list-different .",
"ci-check": "npm-run-all --parallel tsc flow prettier lint",
"prettier:fix": "prettier --write .",
"prepare-ci": "npm run build-dev --prefix packages/lexical-playground",
"prepare-ci-prod": "npm run build-playground-prod",
"prepare-release": "npm run build-release && node ./scripts/npm/prepare-release.js",
"prepare": "husky install",
"prepare-www": "node scripts/www/rewriteImports.js",
"changelog": "func() { git --no-pager log --oneline ${1}...HEAD --pretty=format:\"- %s %an\"; }; func",
"increment-version": "node ./scripts/npm/increment-version",
"update-changelog": "node ./scripts/npm/update-changelog",
"update-version": "node ./scripts/updateVersion",
"postversion": "git checkout -b ${npm_package_version}__release && npm install && npm run update-version && npm run update-changelog && git add -A && git commit -m v${npm_package_version} && git tag -a v${npm_package_version} -m v${npm_package_version}",
"release": "npm run prepare-release && node ./scripts/npm/release.js",
"size": "npm run build && size-limit"
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
"@babel/plugin-transform-optional-catch-binding": "^7.22.11",
"@babel/preset-flow": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.16.7",
"@playwright/test": "^1.41.2",
"@rollup/plugin-alias": "^3.1.4",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.1",
"@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-node-resolve": "^13.0.2",
"@rollup/plugin-replace": "^3.0.0",
"@size-limit/preset-big-lib": "^8.1.0",
"@types/jest": "^29.4.0",
"@types/jsdom": "^21.1.6",
"@types/node": "^17.0.31",
"@types/prismjs": "^1.26.0",
"@types/react": "^18.0.8",
"@types/react-dom": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"babel-eslint": "^10.1.0",
"child-process-promise": "^2.2.1",
"chokidar": "^3.5.2",
"concurrently": "^6.2.0",
"confusing-browser-globals": "^1.0.10",
"cross-env": "^7.0.3",
"eslint": "^7.31.0",
"eslint-config-fbjs": "^3.1.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^24.4.0",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-lexical": "file:./eslint-plugin",
"eslint-plugin-no-function-declare-after-return": "^1.1.0",
"eslint-plugin-no-only-tests": "^2.6.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"flow-bin": "^0.226.0",
"fs-extra": "^10.0.0",
"gen-flow-files": "^0.4.11",
"glob": "^7.2.0",
"google-closure-compiler": "^20220202.0.0",
"gzip-size": "^6.0.0",
"husky": "^7.0.1",
"jest": "^29.4.0",
"jest-environment-jsdom": "^29.4.0",
"jsdom": "^24.0.0",
"lint-staged": "^11.1.0",
"minimist": "^1.2.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"prettier-plugin-organize-attributes": "^0.0.5",
"react-test-renderer": "^17.0.2",
"rollup": "^2.75.5",
"size-limit": "^8.1.0",
"tmp": "^0.2.1",
"ts-jest": "^29.0.0",
"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
"typescript": "5.1.6",
"uuid": "^8.3.2"
},
"dependencies": {
"@types/katex": "^0.14.0",
"yjs": "^13.5.42"
},
"size-limit": [
{
"path": "packages/lexical/dist/Lexical.js"
},
{
"path": "packages/lexical-rich-text/dist/LexicalRichText.js"
},
{
"path": "packages/lexical-plain-text/dist/LexicalPlainText.js"
}
]
}