forked from mdn/yari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
187 lines (187 loc) · 6.24 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
{
"name": "@mdn/yari",
"version": "0.1.6",
"repository": "https://github.com/mdn/yari",
"license": "MPL-2.0",
"author": "MDN Web Docs",
"scripts": {
"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",
"fiori:build": "cd client && build-storybook",
"fiori:start": "cd client && start-storybook -p 6006",
"md": "ts-node markdown/cli.ts",
"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",
"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=jest-environment-jsdom-sixteen",
"test:content": "jest content",
"test:headless": "playwright test headless",
"test:developing": "playwright test developing",
"test:kumascript": "jest kumascript --env=node",
"test:testing": "jest --rootDir testing",
"tool": "node tool/cli.js",
"watch:ssr": "cd ssr && webpack --mode=production --watch",
"prepare": "husky install"
},
"jest": {
"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": {
"@caporal/core": "2.0.2",
"@fast-csv/parse": "4.3.6",
"@mdn/browser-compat-data": "4.0.0",
"accept-language-parser": "1.5.0",
"browser-specs": "^2.7.0",
"chalk": "4.1.2",
"cheerio": "1.0.0-rc.6",
"cli-progress": "^3.9.0",
"compression": "1.7.4",
"cookie": "0.4.1",
"cookie-parser": "1.4.5",
"cssesc": "^3.0.0",
"dayjs": "1.10.6",
"dotenv": "10.0.0",
"ejs": "3.1.6",
"express": "4.17.1",
"fast-xml-parser": "3.19.0",
"fdir": "5.1.0",
"file-type": "16.5.3",
"front-matter": "^4.0.2",
"fs-extra": "10.0.0",
"glob": "^7.1.7",
"got": "11.8.2",
"hast-util-is-element": "^1.1.0",
"hast-util-to-html": "^7.1.3",
"hast-util-to-text": "^2.0.1",
"http-proxy-middleware": "2.0.1",
"image-size": "1.0.0",
"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.1.2",
"is-svg": "4.2.2",
"js-yaml": "4.1.0",
"loglevel": "^1.7.1",
"lru-cache": "^6.0.0",
"md5-file": "5.0.0",
"mdast-util-from-markdown": "^0.8.5",
"mdast-util-phrasing": "^2.0.0",
"mdn-data": "2.0.20",
"open": "^8.2.1",
"open-editor": "3.0.0",
"prismjs": "1.24.1",
"react-modal": "^3.14.3",
"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.1",
"source-map-support": "0.5.19",
"tempy": "1.0.1",
"unified": "^9.2.1",
"unist-builder": "^2.0.3",
"unist-util-visit": "2.0.3"
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@mdn/dinocons": "^0.3.5",
"@mdn/minimalist": "^2.0.2",
"@playwright/test": "1.14.0",
"@storybook/addon-a11y": "^6.3.4",
"@storybook/addon-essentials": "^6.3.4",
"@storybook/preset-create-react-app": "^3.2.0",
"@storybook/react": "^6.3.4",
"@testing-library/react": "^12.0.0",
"@types/hast": "^2.3.2",
"@types/jest": "^27.0.1",
"@types/mdast": "^3.0.8",
"@types/react": "^17.0.19",
"@types/react-dom": "^17.0.9",
"@types/react-modal": "^3.12.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": "24.4.0",
"eslint-plugin-node": "11.1.0",
"extend": "^3.0.2",
"flexsearch": "0.6.32",
"foreman": "3.0.1",
"fzf": "0.4.1",
"history": "5.0.1",
"html-validate": "5.2.1",
"husky": "^6.0.0",
"ignore-loader": "^0.1.2",
"jest-environment-jsdom-sixteen": "^2.0.0",
"jest-junit-reporter": "^1.1.0",
"jsdom": "^17.0.0",
"node-dev": "7.0.0",
"pegjs": "^0.10.0",
"prettier": "2.3.2",
"prettier-plugin-packagejson": "^2.2.11",
"pretty-quick": "3.1.1",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-is": "^17.0.2",
"react-refresh": "0.10",
"react-router": "6.0.0-beta.1",
"react-router-dom": "6.0.0-beta.0",
"react-scripts": "4.0.3",
"rehype-minify-whitespace": "^4.0.5",
"remark-prettier": "^1.2.0",
"rough-notation": "0.5.1",
"sass": "^1.38.0",
"stylelint": "^13.13.1",
"stylelint-a11y": "^1.2.3",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recommended": "^4.0.0",
"stylelint-config-sass-guidelines": "^8.0.0",
"stylelint-prettier": "^1.2.0",
"stylelint-scss": "^3.20.1",
"swr": "^0.5.6",
"ts-loader": "^8.1.0",
"ts-node": "^10.2.1",
"typescript": "^4.3.5",
"use-debounce": "^7.0.0",
"webpack": "^4.44.2",
"webpack-cli": "^4.8.0",
"webpack-node-externals": "^3.0.0"
},
"engines": {
"node": ">=12.11"
}
}