forked from uber/baseweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
254 lines (254 loc) · 10.4 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
253
254
{
"name": "baseui",
"version": "13.0.0",
"description": "A React Component library implementing the Base design language",
"keywords": [
"react",
"uber",
"baseui",
"baseweb"
],
"license": "MIT",
"types": "index.d.ts",
"sideEffects": false,
"module": "./esm/index.js",
"repository": "uber/baseweb",
"scripts": {
"lint:code": "eslint ./ --cache",
"lint:markdown": "markdownlint -c ./.markdownlint.json proposals",
"lint": "yarn lint:code && yarn lint:markdown",
"pretest": "yarn build:documentation-site-files",
"test": "yarn validate:examples && yarn lint && yarn flow && yarn tsc && yarn unit-test",
"flow": "flow check --max-warnings 0",
"prebuild": "shx rm -rf dist",
"build:copy-files": "shx cp README.md dist/README.md",
"build:copy-flow-files": "node ./scripts/flow-copy-src.js",
"build:dts-files": "tsc -p tsconfig.dist.json",
"build:package-json": "shx cp package.json dist/package.json && shx cp .npmrc dist/.npmrc && node ./scripts/build-package-json.js",
"build:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs babel ./src --out-dir ./dist --extensions '.ts,.tsx,.js' --ignore **.test.*,**/__tests__/**,**/e2e.*,**/template-component/**,**/test/**",
"build:esm": "cross-env NODE_ENV=production BABEL_ENV=esm babel ./src --out-dir ./dist/esm --extensions '.ts,.tsx,.js' --ignore **.test.*,**/__tests__/**,**/e2e.*,**/template-component/**,**/test/**",
"build:es": "cross-env NODE_ENV=production BABEL_ENV=es babel ./src --out-dir ./dist/es --extensions '.ts,.tsx,.js' --ignore **.test.*,**/__tests__/**,**/e2e.*,**/template-component/**,**/test/**",
"build": "yarn build:cjs && yarn build:esm && yarn build:es && yarn build:copy-files && yarn build:dts-files && yarn build:copy-flow-files && yarn build:package-json",
"build:docs-and-ladle": "yarn documentation:build && yarn ladle build && mv build public/ladle",
"build:documentation-site-files": "node ./scripts/build-documentation-site-files.js",
"unit-test": "yarn jest --coverage",
"e2e:build": "yarn ladle build --outDir build-ladle",
"e2e:serve": "static-server build-ladle --port 8080",
"e2e:test": "playwright test",
"e2e:test:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn e2e:test",
"vrt": "playwright test --config playwright-vrt.config.ts",
"vrt:docker:run": "docker-compose run e2e-test bash -c 'PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt'",
"vrt:docker:update": "docker-compose run e2e-test bash -c 'PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt --update'",
"vrt:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 node ./vrt/ci.js",
"vrt:reset": "shx rm -rf vrt/tests.vrt.js-snapshots",
"icon:generate": "node ./src/icon/build-icons.js",
"thumbs:generate": "svgr --template ./documentation-site/components/thumbs/template.js --replace-attr-values \"#F6F6F6={props.colors[0]}\" --replace-attr-values \"#E2E2E2={props.colors[1]}\" --replace-attr-values \"#CBCBCB={props.colors[2]}\" -d ./documentation-site/components/thumbs/components ./documentation-site/components/thumbs/svg",
"install": "node -e \"console.log('If you are using Webpack, please make sure to update to version ^4.32.0, as this Base Web version depends on a webpack fix delivered in that version. If you are using Fusion.js make sure to upgrade fusion-cli to ^2.4.2 as it has the Webpack upgrade.')\"",
"predocumentation:dev": "yarn build:documentation-site-files",
"predocumentation:dev:watch": "yarn build:documentation-site-files",
"predocumentation:build": "yarn build:documentation-site-files",
"predocumentation:serve": "yarn build:documentation-site-files",
"documentation:dev": "run-s prebuild build:cjs next:dev",
"documentation:dev:watch": "yarn prebuild && yarn build:cjs --watch & next documentation-site",
"documentation:build": "run-s prebuild build:cjs next:build next:export",
"documentation:serve": "static-server public --port 8081",
"next:dev": "next dev documentation-site",
"next:build": "NODE_OPTIONS=--max_old_space_size=8192 next build documentation-site",
"next:export": "next export documentation-site -o public",
"tsc": "tsc",
"validate:examples": "node ./scripts/validate-examples.js"
},
"devDependencies": {
"@babel/cli": "^7.17.10",
"@babel/core": "^7.17.10",
"@babel/generator": "^7.17.10",
"@babel/helper-builder-react-jsx": "^7.16.7",
"@babel/parser": "^7.17.10",
"@babel/plugin-external-helpers": "^7.16.7",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-export-default-from": "^7.16.7",
"@babel/plugin-syntax-flow": "^7.16.7",
"@babel/plugin-transform-flow-strip-types": "^7.16.7",
"@babel/plugin-transform-react-jsx-self": "^7.16.7",
"@babel/plugin-transform-react-jsx-source": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.17.10",
"@babel/polyfill": "^7.6.0",
"@babel/preset-env": "^7.17.10",
"@babel/preset-flow": "^7.16.7",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@babel/template": "^7.16.7",
"@babel/traverse": "^7.17.10",
"@babel/types": "^7.17.10",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@date-io/luxon": "^2.7.0",
"@date-io/moment": "^2.7.0",
"@dubstep/core": "^3.5.3",
"@ladle/react": "^2.0.2",
"@mdx-js/tag": "^0.20.0",
"@octokit/rest": "^16.33.1",
"@playwright/test": "^1.24.0",
"@svgr/cli": "^4.3.2",
"@testing-library/dom": "^8.17.1",
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^13.3.0",
"@testing-library/user-event": "^13.5.0",
"@types/babel__code-frame": "^7.0.3",
"@types/babel__core": "^7.1.19",
"@types/babel__generator": "^7.6.4",
"@types/babel__template": "^7.4.1",
"@types/babel__traverse": "^7.17.1",
"@types/babylon": "^6.16.6",
"@types/card-validator": "^4.1.0",
"@types/jest": "^26.0.0",
"@types/just-pick": "^2.1.0",
"@types/lodash": "^4.14.141",
"@types/node": "^12.6.8",
"@types/prettier": "^1.18.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.25",
"@types/react-is": "^17.0.2",
"@types/react-virtualized": "^9.21.3",
"@types/react-window": "^1.8.1",
"@types/testing-library__jest-dom": "^5.14.5",
"@types/webpack": "^4.41.32",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"@zeit/next-css": "^1.0.1",
"@zeit/next-mdx": "^1.2.0",
"axe-core": "^4.4.3",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"babel-jest": "^24.0.0",
"babel-loader": "^8.0.0",
"babel-plugin-transform-define": "^1.3.0",
"babel-plugin-transform-styletron-display-name": "^1.1.3",
"babel-plugin-webpack-loaders": "^0.9.0",
"codesandboxer": "^1.0.3",
"commander": "^4.0.1",
"compression-webpack-plugin": "^3.0.0",
"copy-to-clipboard": "^3.2.0",
"core-js": "^2.5.7",
"cross-env": "^6.0.0",
"csstype": "^3.1.0",
"email-validator": "^2.0.4",
"eslint": "7.18.0",
"eslint-config-uber-universal-stage-3": "^3.0.2",
"eslint-plugin-cup": "2.0.3",
"eslint-plugin-flowtype": "4.7.0",
"eslint-plugin-header": "3.0.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "23.20.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "^7.27.0",
"eslint-plugin-react-hooks": "3.0.0",
"flow-bin": "0.131.0",
"globby": "^10.0.1",
"husky": "^3.0.0",
"isomorphic-fetch": "^2.2.1",
"jest": "25.5.3",
"jest-circus": "^26.6.1",
"jest-environment-jsdom": "26.6.0",
"jest-environment-jsdom-global": "1.2.1",
"jest-image-snapshot": "^2.11.0",
"jest-matcher-utils": "^26.6.1",
"jscodeshift": "^0.6.4",
"just-omit": "^1.1.0",
"just-pick": "^2.1.0",
"luxon": "1.21.3",
"markdownlint-cli": "^0.18.0",
"mkdirp": "^0.5.1",
"moment": "^2.24.0",
"next": "^12.3.1",
"next-images": "^1.6.2",
"node-fetch": "^2.6.1",
"now": "16.5.2",
"npm-run-all": "^4.1.5",
"playwright": "^1.24.0",
"prettier": "^2.5.1",
"pretty-proptypes": "^1.0.5",
"pretty-quick": "^1.4.1",
"prism-react-renderer": "^1.0.1",
"query-string": "^6.14.0",
"raw-loader": "^3.1.0",
"react": "^18.2.0",
"react-codesandboxer": "^3.1.5",
"react-compare-image": "^2.0.3",
"react-dom": "^18.2.0",
"react-hook-form": "^7.9.0",
"react-icons": "^3.8.0",
"react-map-gl": "^5.3.19",
"react-markdown": "^4.0.3",
"react-simple-code-editor": "^0.10.0",
"react-twitter-embed": "^2.0.8",
"react-view": "^2.3.3",
"react-vis": "^1.11.6",
"semver": "^6.2.0",
"shx": "^0.3.2",
"static-server": "^2.2.1",
"styletron-engine-atomic": "^1.5.0-beta.2",
"styletron-react": "^6.1.0-beta.2",
"styletron-standard": "^3.1.0-beta.2",
"tar": "^5.0.0",
"tsconfig-paths": "^3.9.0",
"typescript": "^5.0.4",
"universal-cookie": "^4.0.2",
"webpack": "^4.17.1",
"webpack-bundle-analyzer": "^3.5.0",
"webpack-cli": "^3.1.0"
},
"dependencies": {
"@date-io/date-fns": "^2.6.2",
"@next/mdx": "^13.3.1",
"@types/react-virtualized-auto-sizer": "^1.0.0",
"@types/react-window": "^1.8.1",
"card-validator": "^6.2.0",
"d3": "^6.7.0",
"date-fns": "^2.6.0",
"date-fns-tz": "^1.2.2",
"file-loader": "^6.2.0",
"glob": "^7.1.6",
"just-extend": "^4.0.2",
"memoize-one": "^5.1.1",
"mockdate": "^3.0.5",
"polished": "^3.2.0",
"popper.js": "^1.16.0",
"react-dropzone": "9.0.0",
"react-focus-lock": "^2.7.1",
"react-input-mask": "^2.0.4",
"react-is": "^16.8.6",
"react-movable": "^2.5.4",
"react-multi-ref": "^1.0.0",
"react-range": "^1.8.0",
"react-uid": "^2.3.0",
"react-virtualized": "^9.21.1",
"react-virtualized-auto-sizer": "^1.0.2",
"react-window": "^1.8.5",
"resize-observer-polyfill": "^1.5.1"
},
"peerDependencies": {
"react": ">= 16.8.0 < 19",
"react-dom": ">= 16.8.0 < 19",
"styletron-react": ">=6.1.0 < 7"
},
"resolutions": {
"@types/react": "^18.0.25",
"@types/jest/jest-diff": "^25.1.0",
"@types/jest/pretty-format": "^25.1.0"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e $GIT_PARAMS",
"pre-commit": "pretty-quick --staged"
}
},
"volta": {
"node": "16.16.0",
"yarn": "1.19.1"
},
"engines": {
"node": ">=10.x"
}
}