forked from mdn/yari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
252 lines (252 loc) · 8.88 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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
{
"name": "@mdn/yari",
"version": "0.1.6",
"repository": "https://github.com/mdn/yari",
"license": "MPL-2.0",
"author": "MDN Web Docs",
"bin": {
"yari-build": "build/cli.js",
"yari-filecheck": "filecheck/cli.js",
"yari-server": "server/index.js",
"yari-tool": "tool/cli.js"
},
"scripts": {
"analyze": "source-map-explorer 'client/build/static/js/*.js'",
"analyze:css": "source-map-explorer 'client/build/static/css/*.css'",
"build": "cross-env NODE_ENV=production ts-node build/cli.ts",
"build:client": "cd client && cross-env INLINE_RUNTIME_CHUNK=false node scripts/build.js",
"build:dist": "tsc -p tsconfig.dist.json",
"build:glean": "cd client && cross-env VIRTUAL_ENV=venv glean translate src/telemetry/metrics.yaml src/telemetry/pings.yaml -f typescript -o src/telemetry/generated",
"build:prepare": "yarn build:client && yarn build:ssr && yarn tool optimize-client-build && yarn tool google-analytics-code && yarn tool popularities && yarn tool spas && yarn tool gather-git-history && yarn tool build-robots-txt",
"build:ssr": "cd ssr && webpack --mode=production",
"build:sw": "cd client/pwa && yarn && yarn build:prod",
"build:sw-dev": "cd client/pwa && yarn && yarn build",
"dev": "yarn build:prepare && nf -j Procfile.dev start",
"eslint": "eslint .",
"filecheck": "cd filecheck && ts-node cli.ts",
"m2h": "ts-node markdown/m2h/cli.ts",
"md": "echo 'The HTML to Markdown conversion command has been moved to https://github.com/mdn/markdown!' && exit 1",
"prepack": "yarn build:dist",
"prepare": "husky install",
"prettier-check": "prettier --check .",
"prettier-format": "prettier --write .",
"start": "(test -f client/build/index.html || yarn build:client) && (test -f ssr/dist/main.js || yarn build:ssr) && (test -d client/build/en-us/_spas || yarn tool spas) && nf -j Procfile.start start",
"start:client": "cd client && cross-env BROWSER=none PORT=3000 node scripts/start.js",
"start:dev-server": "node-dev server/index.ts",
"start:server": "ts-node server",
"start:static-server": "cross-env ENV_FILE=testing/.env ts-node server/static.ts",
"style-dictionary": "style-dictionary build -c sd-config.js",
"stylelint": "stylelint \"**/*.scss\"",
"test": "yarn prettier-check && yarn test:client && yarn test:kumascript && yarn test:content && yarn test:testing",
"test:client": "cd client && tsc --noEmit && node scripts/test.js --env=jsdom",
"test:content": "jest content",
"test:developing": "cross-env CONTENT_ROOT=mdn/content/files TESTING_DEVELOPING=true playwright test developing",
"test:headless": "playwright test headless",
"test:kumascript": "jest kumascript --env=node",
"test:prepare": "yarn build:prepare && yarn build && yarn start:static-server",
"test:testing": "jest --rootDir testing",
"tool": "ts-node tool/cli.ts",
"watch:ssr": "cd ssr && webpack --mode=production --watch"
},
"jest": {
"globals": {
"ts-jest": {
"babelConfig": true
}
},
"preset": "ts-jest",
"testPathIgnorePatterns": [
"headless*",
"developing.spec.ts"
]
},
"resolutions": {
"@types/react": ">=18.0.0",
"@typescript-eslint/typescript-estree": ">=5.14.0",
"lodash": ">=4.17.15"
},
"dependencies": {
"@caporal/core": "^2.0.2",
"@fast-csv/parse": "^4.3.6",
"@mdn/browser-compat-data": "^5.2.6",
"@mozilla/glean": "1.2.0",
"@use-it/interval": "^1.0.0",
"@webref/css": "^5.4.0",
"accept-language-parser": "^1.5.0",
"browser-specs": "^3.28.0",
"chalk": "^4.1.2",
"cheerio": "^1.0.0-rc.12",
"cli-progress": "^3.11.2",
"compression": "^1.7.4",
"cookie": "^0.5.0",
"cookie-parser": "^1.4.6",
"css-tree": "^2.2.1",
"dayjs": "^1.11.5",
"dexie": "^3.2.2",
"dotenv": "^16.0.3",
"ejs": "^3.1.8",
"express": "^4.18.2",
"fdir": "^5.2.0",
"file-type": "^16.5.4",
"front-matter": "^4.0.2",
"fs-extra": "^10.1.0",
"got": "^11.8.3",
"html-react-parser": "^3.0.4",
"http-proxy-middleware": "^2.0.6",
"image-size": "^1.0.2",
"image-type": "^4.1.0",
"imagemin": "^7.0.1",
"imagemin-gifsicle": "^7.0.0",
"imagemin-mozjpeg": "^9.0.0",
"imagemin-pngquant": "^9.0.2",
"imagemin-svgo": "^9.0.0",
"inquirer": "^8.2.4",
"is-svg": "^4.3.2",
"js-yaml": "^4.1.0",
"loglevel": "^1.8.0",
"lru-cache": "^7.14.0",
"md5-file": "^5.0.0",
"mdast-util-from-markdown": "^0.8.5",
"mdast-util-phrasing": "^2.0.0",
"mdn-data": "^2.0.29",
"open": "^8.4.0",
"open-editor": "^3.0.0",
"prismjs": "^1.29.0",
"react-modal": "^3.15.1",
"read-chunk": "^3.2.0",
"rehype-format": "^3.1.0",
"rehype-raw": "^5.1.0",
"rehype-remark": "^8.1.1",
"rehype-stringify": "^8.0.0",
"remark-gfm": "^1.0.0",
"remark-parse": "^9.0.0",
"remark-rehype": "^8.1.0",
"sanitize-filename": "^1.6.3",
"send": "^0.18.0",
"source-map-support": "^0.5.21",
"tempy": "^1.0.1",
"unified": "^9.2.1",
"unist-builder": "^2.0.3",
"unist-util-visit": "^2.0.3"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-env": "^7.19.4",
"@mdn/dinocons": "^0.5.5",
"@mdn/minimalist": "^2.0.4",
"@playwright/test": "^1.27.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
"@svgr/webpack": "^6.4.0",
"@swc/core": "^1.3.6",
"@testing-library/react": "^13.4.0",
"@types/hast": "^2.3.4",
"@types/jest": "^29.1.0",
"@types/mdast": "^3.0.10",
"@types/node": "^16.11.65",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/react-modal": "^3.13.1",
"@typescript-eslint/eslint-plugin": "^5.40.0",
"@typescript-eslint/parser": "^5.40.0",
"babel-jest": "^29.1.2",
"babel-loader": "^8.2.3",
"babel-plugin-named-asset-import": "^0.3.8",
"babel-preset-react-app": "^10.0.1",
"bfj": "^7.0.2",
"braces": "^3.0.2",
"browserslist": "^4.21.4",
"camelcase": "^6.2.1",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"cross-env": "^7.0.3",
"css-loader": "^6.5.1",
"css-minimizer-webpack-plugin": "^4.2.1",
"diff": "^5.1.0",
"dotenv-expand": "^9.0.0",
"downshift": "^6.1.12",
"eslint": "^8.25.0",
"eslint-config-react-app": "^7.0.1",
"eslint-gitignore": "^0.1.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.1",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-webpack-plugin": "^3.2.0",
"extend": "^3.0.2",
"file-loader": "^6.2.0",
"foreman": "^3.0.1",
"history": "^5.2.0",
"html-validate": "^7.6.0",
"html-webpack-plugin": "^5.5.0",
"husky": "^8.0.1",
"identity-obj-proxy": "^3.0.0",
"ignore-loader": "^0.1.2",
"jest": "^29.1.1",
"jest-environment-jsdom": "^29.1.2",
"jest-junit-reporter": "^1.1.0",
"jest-resolve": "^29.1.2",
"jest-watch-typeahead": "^2.2.0",
"jsdom": "^20.0.1",
"lint-staged": "^13.0.3",
"mini-css-extract-plugin": "^2.6.1",
"node-dev": "^7.4.3",
"pegjs": "^0.10.0",
"postcss": "^8.4.18",
"postcss-flexbugs-fixes": "^5.0.2",
"postcss-loader": "^7.0.1",
"postcss-normalize": "^10.0.1",
"postcss-preset-env": "^7.8.2",
"prettier": "^2.7.1",
"prettier-plugin-packagejson": "^2.3.0",
"prompts": "^2.4.2",
"react": "^18.2.0",
"react-app-polyfill": "^3.0.0",
"react-dev-utils": "^12.0.1",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"react-refresh": "^0.14",
"react-router": "^6.3.0",
"react-router-dom": "^6.4.2",
"rehype-minify-whitespace": "^4.0.5",
"remark-prettier": "^2.0.0",
"resolve": "^1.22.1",
"resolve-url-loader": "^5.0.0",
"rough-notation": "^0.5.1",
"sass": "^1.55.0",
"sass-loader": "^13.1.0",
"semver": "^7.3.8",
"source-map-explorer": "^2.5.3",
"source-map-loader": "^4.0.1",
"style-dictionary": "^3.7.1",
"style-loader": "^3.3.1",
"stylelint": "^14.13.0",
"stylelint-a11y": "^1.2.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recommended": "^9.0.0",
"stylelint-config-sass-guidelines": "^9.0.1",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.3.0",
"swr": "^1.3.0",
"tailwindcss": "^3.1.8",
"terser-webpack-plugin": "^5.3.6",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"use-debounce": "^8.0.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0",
"webpack-dev-middleware": "^5.3.3",
"webpack-dev-server": "^4.11.1",
"webpack-hot-middleware": "^2.25.2",
"webpack-manifest-plugin": "^5.0.0",
"webpack-node-externals": "^3.0.0",
"workbox-webpack-plugin": "^6.5.4"
},
"engines": {
"node": "^16.0.0 || >=18.0.0"
}
}