UNPKG

9.93 kBJSONView Raw
1{
2 "name": "baseui",
3 "version": "9.109.0",
4 "description": "A React Component library implementing the Base design language",
5 "keywords": [
6 "react",
7 "uber",
8 "baseui",
9 "baseweb"
10 ],
11 "license": "MIT",
12 "types": "index.d.ts",
13 "sideEffects": false,
14 "module": "./esm/index.js",
15 "repository": "uber/baseweb",
16 "scripts": {
17 "lint:code": "eslint ./ --fix --cache",
18 "lint:markdown": "markdownlint -c ./.markdownlint.json proposals",
19 "lint": "yarn lint:code && yarn lint:markdown",
20 "pretest": "yarn build:documentation-site-files",
21 "test": "yarn validate:examples && yarn lint && yarn flow && yarn tsc && yarn unit-test",
22 "flow": "flow check --max-warnings 0",
23 "storybook": "start-storybook -p 6006 -c e2e/storybook",
24 "build-storybook": "build-storybook -c e2e/storybook -o public/legacy && build-storybook -c e2e/storybook",
25 "prebuild": "shx rm -rf dist",
26 "build:copy-files": "shx cp README.md dist/README.md",
27 "build:copy-flow-files": "node ./scripts/flow-copy-src.js",
28 "build:copy-ts-files": "node ./scripts/ts-copy.js",
29 "build:package-json": "shx cp package.json dist/package.json && node ./scripts/build-package-json.js",
30 "build:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs babel ./src --out-dir ./dist --ignore **.test.js,**/__tests__/**,**/e2e.js,**/template-component/**,**/test/**",
31 "build:esm": "cross-env NODE_ENV=production BABEL_ENV=esm babel ./src --out-dir ./dist/esm --ignore **.test.js,**/__tests__/**,**/e2e.js,**/template-component/**,**/test/**",
32 "build:es": "cross-env NODE_ENV=production BABEL_ENV=es babel ./src --out-dir ./dist/es --ignore **.test.js,**/__tests__/**,**/e2e.js,**/template-component/**,**/test/**",
33 "build": "yarn build:cjs && yarn build:esm && yarn build:es && yarn build:copy-files && yarn build:copy-flow-files && yarn build:copy-ts-files && yarn build:package-json",
34 "build:documentation-site-files": "node ./scripts/build-documentation-site-files.js",
35 "unit-test": "yarn jest --coverage",
36 "e2e:build": "webpack --config ./e2e/webpack.e2e.config.js --mode=production",
37 "e2e:serve": "static-server e2e/dist --port 8080",
38 "e2e:test": "jest --runInBand -c jest.e2e.config.js",
39 "e2e:test:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 jest -c jest.e2e.config.js",
40 "vrt": "jest -c jest.vrt.config.js",
41 "vrt:docker:run": "docker-compose run e2e-test bash -c 'yarn add puppeteer && PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt'",
42 "vrt:docker:update": "docker-compose run e2e-test bash -c 'yarn add puppeteer && PUPPETEER_TARGET_URL=http://e2e-server:8080 yarn vrt -u'",
43 "vrt:ci": "PUPPETEER_TARGET_URL=http://e2e-server:8080 node ./vrt/ci.js",
44 "vrt:reset": "shx rm -rf vrt/__image_snapshots__",
45 "icon:generate": "node ./src/icon/build-icons.js",
46 "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",
47 "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.')\"",
48 "predocumentation:dev": "yarn build:documentation-site-files",
49 "predocumentation:dev:watch": "yarn build:documentation-site-files",
50 "predocumentation:build": "yarn build:documentation-site-files",
51 "predocumentation:serve": "yarn build:documentation-site-files",
52 "documentation:dev": "run-s prebuild build:cjs next:dev",
53 "documentation:dev:watch": "yarn prebuild && yarn build:cjs --watch & next documentation-site",
54 "documentation:build": "run-s prebuild build:cjs next:build next:export",
55 "documentation:serve": "static-server public --port 8081",
56 "documentation:legacy": "node ./scripts/build-docs.js",
57 "next:dev": "next dev documentation-site",
58 "next:build": "NODE_OPTIONS=--max_old_space_size=4096 next build documentation-site",
59 "next:export": "next export documentation-site -o public",
60 "tsc": "tsc --skipLibCheck",
61 "validate:examples": "node ./scripts/validate-examples.js"
62 },
63 "devDependencies": {
64 "@babel/cli": "^7.6.0",
65 "@babel/core": "^7.8.4",
66 "@babel/parser": "^7.7.3",
67 "@babel/plugin-external-helpers": "^7.2.0",
68 "@babel/plugin-proposal-class-properties": "^7.5.5",
69 "@babel/plugin-proposal-export-default-from": "^7.5.2",
70 "@babel/plugin-syntax-flow": "^7.8.3",
71 "@babel/plugin-transform-flow-strip-types": "^7.4.4",
72 "@babel/plugin-transform-runtime": "^7.6.0",
73 "@babel/polyfill": "^7.6.0",
74 "@babel/preset-env": "^7.6.0",
75 "@babel/preset-flow": "^7.0.0",
76 "@babel/preset-react": "^7.0.0",
77 "@babel/traverse": "^7.7.0",
78 "@babel/types": "^7.7.1",
79 "@commitlint/cli": "^8.0.0",
80 "@commitlint/config-conventional": "^8.0.0",
81 "@date-io/luxon": "^2.7.0",
82 "@date-io/moment": "^2.7.0",
83 "@mdx-js/tag": "^0.20.0",
84 "@octokit/rest": "^16.33.1",
85 "@storybook/react": "^5.0.0",
86 "@svgr/cli": "^4.3.2",
87 "@testing-library/jest-dom": "^5.11.5",
88 "@testing-library/react": "^11.1.0",
89 "@testing-library/user-event": "^12.1.10",
90 "@types/babel__code-frame": "^7.0.1",
91 "@types/babel__core": "^7.1.3",
92 "@types/babel__generator": "^7.0.2",
93 "@types/babel__template": "^7.0.2",
94 "@types/babel__traverse": "^7.0.7",
95 "@types/babylon": "^6.16.5",
96 "@types/card-validator": "^4.1.0",
97 "@types/jest": "^26.0.0",
98 "@types/just-pick": "^2.1.0",
99 "@types/lodash": "^4.14.141",
100 "@types/node": "^12.6.8",
101 "@types/prettier": "^1.18.0",
102 "@types/react": "^16.8.23",
103 "@types/react-dom": "^16.8.4",
104 "@types/react-virtualized": "^9.21.3",
105 "@types/react-window": "^1.8.1",
106 "@types/styletron-engine-atomic": "^1.1.0",
107 "@types/styletron-react": "^5.0.1",
108 "@types/styletron-standard": "^2.0.0",
109 "@zeit/next-css": "^1.0.1",
110 "@zeit/next-mdx": "^1.2.0",
111 "axe-core": "^3.1.2",
112 "babel-core": "^7.0.0-bridge.0",
113 "babel-eslint": "^10.0.0",
114 "babel-jest": "^24.0.0",
115 "babel-loader": "^8.0.0",
116 "babel-plugin-transform-define": "^1.3.0",
117 "babel-plugin-transform-styletron-display-name": "^1.1.3",
118 "babel-plugin-webpack-loaders": "^0.9.0",
119 "codesandboxer": "^1.0.3",
120 "commander": "^4.0.1",
121 "compression-webpack-plugin": "^3.0.0",
122 "copy-to-clipboard": "^3.2.0",
123 "core-js": "^2.5.7",
124 "cross-env": "^6.0.0",
125 "email-validator": "^2.0.4",
126 "eslint": "^6.0.0",
127 "eslint-config-uber-universal-stage-3": "^3.0.0",
128 "eslint-plugin-cup": "^2.0.0",
129 "eslint-plugin-flowtype": "^4.0.0",
130 "eslint-plugin-header": "^3.0.0",
131 "eslint-plugin-import": "^2.13.0",
132 "eslint-plugin-jsx-a11y": "^6.1.0",
133 "eslint-plugin-prettier": "^3.0.0",
134 "eslint-plugin-react": "^7.10.0",
135 "extract-react-types": "^0.26.0",
136 "extract-react-types-loader": "^0.3.13",
137 "flow-bin": "^0.110.0",
138 "globby": "^10.0.1",
139 "husky": "^3.0.0",
140 "isomorphic-fetch": "^2.2.1",
141 "jest": "^26.6.0",
142 "jest-circus": "^26.6.1",
143 "jest-image-snapshot": "^2.11.0",
144 "jest-matcher-utils": "^26.6.1",
145 "jest-puppeteer": "^4.0.0",
146 "jscodeshift": "^0.6.4",
147 "just-omit": "^1.1.0",
148 "just-pick": "^2.1.0",
149 "luxon": "1.21.3",
150 "markdownlint-cli": "^0.18.0",
151 "mkdirp": "^0.5.1",
152 "moment": "^2.24.0",
153 "next": "^10.0.0",
154 "next-images": "^1.6.2",
155 "next-transpile-modules": "^6.0.0",
156 "node-fetch": "^2.6.1",
157 "npm-run-all": "^4.1.5",
158 "prettier": "^1.18.2",
159 "pretty-proptypes": "^1.0.5",
160 "pretty-quick": "^1.4.1",
161 "prism-react-renderer": "^1.0.1",
162 "puppeteer": "^1.20.0",
163 "raw-loader": "^3.1.0",
164 "react": "^16.9.0",
165 "react-codesandboxer": "^3.1.5",
166 "react-compare-image": "^2.0.3",
167 "react-dom": "^16.9.0",
168 "react-icons": "^3.8.0",
169 "react-markdown": "^4.0.3",
170 "react-twitter-embed": "^2.0.8",
171 "react-view": "^2.3.3",
172 "react-vis": "^1.11.6",
173 "remove-flow-types-loader": "^1.1.0",
174 "semver": "^6.2.0",
175 "shx": "^0.3.2",
176 "static-server": "^2.2.1",
177 "storybook-addon-rtl": "^0.2.2",
178 "styletron-engine-atomic": "^1.4.3",
179 "styletron-react": "^5.2.4",
180 "styletron-standard": "^3.0.3",
181 "tar": "^5.0.0",
182 "tsconfig-paths": "^3.9.0",
183 "typescript": "^3.8.0",
184 "universal-cookie": "^4.0.2",
185 "webpack": "^4.17.1",
186 "webpack-bundle-analyzer": "^3.5.0",
187 "webpack-cli": "^3.1.0"
188 },
189 "dependencies": {
190 "@date-io/date-fns": "^2.6.2",
191 "card-validator": "^6.2.0",
192 "date-fns": "^2.6.0",
193 "glob": "^7.1.6",
194 "just-extend": "^4.0.2",
195 "memoize-one": "^5.1.1",
196 "polished": "^3.2.0",
197 "popper.js": "^1.16.0",
198 "react-dropzone": "^9.0.0",
199 "react-focus-lock": "^2.2.1",
200 "react-input-mask": "^2.0.4",
201 "react-is": "^16.8.6",
202 "react-movable": "^2.4.0",
203 "react-multi-ref": "^1.0.0",
204 "react-range": "^1.8.0",
205 "react-uid": "^2.3.0",
206 "react-virtualized": "^9.21.1",
207 "react-virtualized-auto-sizer": "^1.0.2",
208 "react-window": "^1.8.5",
209 "resize-observer-polyfill": "^1.5.1",
210 "timezone-support": "^2.0.2"
211 },
212 "peerDependencies": {
213 "react": ">= 16.8.0 < 17",
214 "react-dom": ">= 16.8.0 < 17",
215 "styletron-react": "^5.2.2"
216 },
217 "resolutions": {
218 "@types/react": "16.8.23",
219 "@types/jest/jest-diff": "^25.1.0",
220 "@types/jest/pretty-format": "^25.1.0"
221 },
222 "husky": {
223 "hooks": {
224 "commit-msg": "commitlint -e $GIT_PARAMS",
225 "pre-commit": "pretty-quick --staged"
226 }
227 },
228 "volta": {
229 "node": "12.14.0",
230 "yarn": "1.19.1"
231 },
232 "engines": {
233 "node": ">=10.x"
234 }
235}