Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 5.13 KB
/
Copy pathpackage.json
File metadata and controls
132 lines (132 loc) · 5.13 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
{
"private": true,
"name": "slate-packages",
"workspaces": [
"packages/*"
],
"resolutions": {
"postcss": "^8.5.26",
"serialize-javascript": "^7.1.0"
},
"scripts": {
"build": "yarn build:rollup && yarn build:next",
"build:next": "cd ./site && next build",
"build:rollup": "rollup --config ./config/rollup/rollup.config.js --bundleConfigAsCjs",
"changesetversion": "yarn changeset version && yarn install && git add .",
"clean": "rimraf './packages/*/{dist,lib,node_modules}' './site/{.next,out}' --glob",
"fix": "yarn tsc:examples && yarn fix:prettier && yarn fix:eslint",
"fix:eslint": "yarn lint:eslint --fix",
"fix:prettier": "yarn lint:prettier --write",
"lint": "yarn lint:typescript && yarn lint:eslint && yarn lint:prettier",
"lint:eslint": "eslint \"./{packages,site}/**/*.{js,jsx,ts,tsx}\"",
"lint:prettier": "prettier --check \"**/*.{css,md,js,jsx,json,ts,tsx}\"",
"lint:typescript": "tsc --build ./ --force && tsc --noEmit -p site/tsconfig.json",
"open": "open http://localhost:3000",
"prerelease": "NODE_ENV=production yarn build:rollup && yarn test && yarn lint",
"internal:release:next": "yarn prerelease && yarn changeset publish --tag next",
"serve": "cd ./site && next",
"start": "npm-run-all --parallel --print-label watch serve",
"test": "yarn run test:mocha && yarn run test:jest && yarn run test:docs",
"test:custom": "mocha --require ./config/babel/register.cjs ./packages/slate/test/index.js",
"test:inspect": "yarn test --inspect-brk",
"test:integration": "playwright install --with-deps && run-p -r serve playwright",
"test:integration-local": "playwright install && run-p -r serve playwright",
"test:integration-docker": "./playwright/docker/run-tests.sh",
"test:mocha": "mocha --require ./config/babel/register.cjs ./packages/{slate,slate-history,slate-hyperscript}/test/**/*.{js,ts}",
"test:jest": "jest --config jest.config.js",
"tsc:examples": "tsc --project ./site/tsconfig.example.json",
"watch": "yarn build:rollup --watch",
"playwright": "playwright test",
"test:docs": "node ./config/docs/check-typescript.cjs",
"test:fuzz": "SLATE_FUZZ=1 mocha --require ./config/babel/register.cjs \"./packages/slate/test/properties/**/*.spec.ts\" --timeout 60000"
},
"devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.2",
"@babel/helper-call-delegate": "^7.12.13",
"@babel/plugin-external-helpers": "^7.22.5",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-modules-commonjs": "^7.23.0",
"@babel/plugin-transform-runtime": "^7.23.2",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@babel/register": "^7.22.15",
"@babel/runtime": "^7.23.2",
"@changesets/changelog-github": "^0.5.2",
"@changesets/cli": "^2.29.8",
"@emotion/css": "^11.11.2",
"@faker-js/faker": "^10.0.0",
"@fontsource/material-icons": "^5.3.0",
"@fontsource/roboto": "^5.3.0",
"@playwright/test": "^1.62.1",
"@slate-yjs/core": "1.0.2",
"@types/is-hotkey": "^0.1.10",
"@types/is-url": "^1.2.32",
"@types/jest": "29.5.6",
"@types/lodash": "^4.14.200",
"@types/mocha": "^10.0.3",
"@types/node": "^20.8.7",
"@types/prismjs": "^1.26.1",
"@types/react": "19.2.18",
"@types/react-dom": "19.2.7",
"@typescript-eslint/eslint-plugin": "8.71.0",
"@typescript-eslint/parser": "8.71.0",
"babel-jest": "29.7.0",
"babel-plugin-dev-expression": "^0.2.3",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "9.39.5",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-prettier": "5.5.6",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "5.2.0",
"globals": "17.12.0",
"image-extensions": "^1.1.0",
"is-hotkey": "^0.2.0",
"is-url": "^1.2.4",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "^15.0.1",
"lodash": "^4.17.21",
"mocha": "^11.8.0",
"next": "^15.5.24",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"prismjs": "^1.29.0",
"react": "19.2.8",
"react-dom": "19.2.8",
"react-error-boundary": "^4.0.11",
"rimraf": "^5.0.5",
"rollup": "^4.1.4",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"shell-quote": "^1.8.1",
"simple-git-hooks": "^2.9.0",
"slate": "workspace:*",
"slate-dom": "workspace:*",
"slate-history": "workspace:*",
"slate-hyperscript": "workspace:*",
"slate-react": "workspace:*",
"source-map-loader": "^4.0.1",
"ts-jest": "^29.1.1",
"typescript": "6.0.3",
"yjs": "13.6.33"
},
"simple-git-hooks": {
"pre-commit": "yarn lint-staged"
},
"lint-staged": {
"*.{css,md,js,jsx,json,ts,tsx}": [
"prettier --write",
"eslint --fix"
]
},
"packageManager": "yarn@4.18.0"
}