forked from mdn/yari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
196 lines (196 loc) · 6.51 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
{
"name": "@mdn/yari",
"version": "0.1.6",
"repository": "https://github.com/mdn/yari",
"license": "MPL-2.0",
"author": "MDN Web Docs",
"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 node build/cli.js",
"build:client": "cd client && cross-env INLINE_RUNTIME_CHUNK=false react-scripts build",
"build:ssr": "cd ssr && webpack --mode=production",
"dev": "yarn prepare-build && nf -j Procfile.dev start",
"eslint": "eslint .",
"filecheck": "cd filecheck && node cli.js",
"md": "ts-node markdown/cli.ts",
"prepare": "husky install",
"prepare-build": "yarn build:client && yarn build:ssr && yarn tool optimize-client-build && yarn tool google-analytics-code && yarn tool spas && yarn tool gather-git-history && yarn tool build-robots-txt && yarn tool popularities",
"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 react-scripts start",
"start:dev-server": "node-dev server",
"start:server": "node server",
"start:static-server": "cross-env ENV_FILE=testing/.env node server/static.js",
"style-dictionary": "style-dictionary build -c sd-config.js",
"test": "yarn prettier-check && yarn test:client && yarn test:kumascript && yarn test:content && yarn test:testing",
"test:client": "cd client && tsc --noEmit && react-scripts test --env=jsdom",
"test:content": "jest content",
"test:developing": "playwright test developing",
"test:headless": "playwright test headless",
"test:kumascript": "jest kumascript --env=node",
"test:prepare": "yarn prepare-build && yarn build && yarn start:static-server",
"test:testing": "jest --rootDir testing",
"tool": "node tool/cli.js",
"watch:ssr": "cd ssr && webpack --mode=production --watch"
},
"jest": {
"globals": {
"ts-test": {
"babelConfig": true
}
},
"testPathIgnorePatterns": [
"headless*",
"developing.spec.js"
]
},
"resolutions": {
"@typescript-eslint/typescript-estree": ">=4.15.2",
"babel-loader": "8.1.0",
"lodash": ">=4.17.15",
"mixin-deep": ">=1.3.2",
"set-value": ">=2.0.1"
},
"dependencies": {
"@babel/helper-builder-react-jsx": "^7.16.7",
"@caporal/core": "2.0.2",
"@fast-csv/parse": "4.3.6",
"@mdn/browser-compat-data": "4.1.11",
"@use-it/interval": "^1.0.0",
"accept-language-parser": "1.5.0",
"browser-specs": "^3.2.0",
"chalk": "4.1.2",
"cheerio": "1.0.0-rc.10",
"cli-progress": "^3.10.0",
"compression": "1.7.4",
"cookie": "0.4.1",
"cookie-parser": "1.4.6",
"cssesc": "^3.0.0",
"dayjs": "1.11.0",
"dotenv": "14.3.0",
"ejs": "3.1.6",
"express": "4.17.3",
"fast-xml-parser": "4.0.6",
"fdir": "5.2.0",
"file-type": "16.5.3",
"front-matter": "^4.0.2",
"fs-extra": "10.0.0",
"glob": "^7.2.0",
"got": "11.8.3",
"hast-util-is-element": "^1.1.0",
"hast-util-to-html": "^7.1.3",
"hast-util-to-text": "^2.0.1",
"html-react-parser": "^1.4.8",
"http-proxy-middleware": "2.0.4",
"image-size": "1.0.1",
"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.1",
"is-svg": "4.2.2",
"js-yaml": "4.1.0",
"klaw-sync": "^6.0.0",
"loglevel": "^1.8.0",
"lru-cache": "^7.5.1",
"md5-file": "5.0.0",
"mdast-util-from-markdown": "^0.8.5",
"mdast-util-phrasing": "^2.0.0",
"mdn-data": "2.0.27",
"node-gettext": "^3.0.0",
"open": "^8.4.0",
"open-editor": "3.0.0",
"prismjs": "1.26.0",
"react-modal": "^3.14.4",
"read-chunk": "3.2.0",
"rehype-format": "^3.1.0",
"rehype-parse": "^7.0.1",
"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",
"remark-stringify": "^9.0.1",
"sanitize-filename": "^1.6.3",
"send": "0.17.2",
"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.16.12",
"@mdn/dinocons": "^0.5.5",
"@mdn/minimalist": "^2.0.4",
"@playwright/test": "1.20.0",
"@testing-library/react": "^12.1.4",
"@types/hast": "^2.3.4",
"@types/jest": "^27.4.0",
"@types/mdast": "^3.0.10",
"@types/react": "^17.0.40",
"@types/react-dom": "^17.0.13",
"@types/react-modal": "^3.13.1",
"babel-loader": "8.1.0",
"benchmark": "2.1.4",
"braces": "^3.0.2",
"cross-env": "^7.0.3",
"diff": "^5.0.0",
"downshift": "^6.1.7",
"eslint": "^7.18.0",
"eslint-gitignore": "^0.1.0",
"eslint-plugin-jest": "26.0.0",
"eslint-plugin-node": "11.1.0",
"extend": "^3.0.2",
"foreman": "3.0.1",
"fzf": "0.5.1",
"history": "5.2.0",
"html-validate": "6.5.0",
"husky": "^7.0.4",
"ignore-loader": "^0.1.2",
"jest-junit-reporter": "^1.1.0",
"jest-puppeteer": "6.1.0",
"jsdom": "^19.0.0",
"node-dev": "7.2.0",
"pegjs": "^0.10.0",
"prettier": "^2.5.1",
"prettier-plugin-packagejson": "^2.2.16",
"pretty-quick": "3.1.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "^17.0.2",
"react-refresh": "0.11",
"react-router": "6.2.2",
"react-router-dom": "6.0.0-beta.2",
"react-scripts": "4.0.3",
"rehype-minify-whitespace": "^4.0.5",
"remark-prettier": "^1.3.0",
"rough-notation": "0.5.1",
"sass": "^1.49.4",
"source-map-explorer": "^2.5.2",
"style-dictionary": "^3.7.0",
"stylelint": "^13.13.1",
"stylelint-a11y": "^1.2.3",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-recommended": "^5.0.0",
"stylelint-config-sass-guidelines": "^8.0.0",
"stylelint-prettier": "^1.2.0",
"stylelint-scss": "^3.21.0",
"swr": "^0.5.6",
"ts-loader": "^8.1.0",
"ts-node": "^10.7.0",
"typescript": "^4.6.2",
"use-debounce": "^7.0.1",
"webpack": "4.44.2",
"webpack-cli": "^4.9.2",
"webpack-node-externals": "^3.0.0"
},
"engines": {
"node": ">=12.11.0 <17.0.0"
}
}