forked from box/box-ui-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
379 lines (379 loc) · 16.7 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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
{
"name": "box-ui-elements",
"version": "0.0.0-semantically-released",
"description": "Box UI Elements",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
"homepage": "https://developer.box.com/docs/box-ui-elements",
"main": "es/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"types": "es/types.d.ts",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"keywords": [
"box",
"box platform",
"box-platform",
"box content",
"box-content",
"ui elements",
"preview",
"uploader",
"picker",
"explorer",
"box-content-ui-elements",
"box-content-preview",
"box-content-uploader",
"box-content-picker",
"box-content-explorer",
"box-content-openwith",
"box-content-sidebar"
],
"repository": {
"type": "git",
"url": "[email protected]:box/box-ui-elements.git"
},
"bugs": {
"url": "https://github.com/box/box-ui-elements/issues"
},
"scripts": {
"build": "yarn build:dev:dist",
"build:ci:es": "yarn build:prod:es",
"build:ci:dist": "LANGUAGE=en-US ENTRY=explorer REACT=true yarn build:prod:dist",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development webpack --config scripts/webpack.config.js --mode development --progress --colors",
"build:dev:es": "BABEL_ENV=development NODE_ENV=development yarn build:es --copy-files --source-maps inline --watch --ignore \"**/*.d.ts,**/__tests__/**,**/__mocks__/**\"",
"build:es": "babel src --extensions '.js,.tsx,.ts' --out-dir es",
"build:i18n": "props2es",
"build:npm": "npm-run-all clean build:i18n build:prod:npm build:prod:es",
"build:prod:analyze": "BUNDLE_ANALYSIS=true npm-run-all setup build:prod:npm",
"build:prod:es": "BABEL_ENV=npm NODE_ENV=production yarn build:es --source-maps --ignore \"**/*.d.ts,**/__tests__/**,**/__mocks__/**\"",
"build:prod:dist": "NODE_ENV=production webpack --config scripts/webpack.config.js --mode production",
"build:prod:examples": "LANGUAGE=en-US REACT=true NODE_ENV=production node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js build --config scripts/styleguide.config.js --mode production",
"build:prod:npm": "BABEL_ENV=production OUTPUT=dist LANGUAGE=en-US REACT=true yarn build:prod:dist",
"build:prod:storybook": "LANGUAGE=en-US REACT=true BROWSERSLIST_ENV=production BABEL_ENV=development NODE_ENV=development build-storybook -c .storybook -o styleguide/storybook",
"build:sync": "LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development RSYNC=true webpack --config scripts/webpack.config.js --mode development",
"build:variables": "cat `find src/styles/constants -name '*.scss'` > src/styles/variables.scss | node ./scripts/build-style-vars.js src/styles/variables.scss && rm src/styles/variables.scss",
"build:assets": "./scripts/asset-import/cli.js",
"clean": "rm -rf dist es i18n/json i18n/*.js reports styleguide",
"copy:flow": "flow-copy-source --ignore \"**/__tests__/**\" --ignore \"**/__mocks__/**\" --ignore \"**/*.ts\" ./src ./es && copyfiles './src/**/*.js.flow' es --up 1",
"copy:styles": "copyfiles './src/**/*.scss' es --up 1",
"cy:open": "yarn cy:wait; yarn cypress open",
"cy:run": "yarn cy:wait; yarn cypress run --spec \"test/integration/**/*.test.js\"",
"cy:wait": "wait-on http-get://localhost:6060/#",
"lint": "npm-run-all lint:*",
"lint:js": "eslint --max-warnings=0 .",
"lint:ts": "tsc && eslint --ext=.tsx,.ts --max-warnings=0 .",
"lint:css": "stylelint \"src/**/*.scss\" --syntax scss",
"prebuild:es": "npm-run-all build:variables copy:styles ts:defs copy:flow",
"release": "yarn release:beta",
"release:beta": "DIST=beta BRANCH=master ./scripts/release.sh",
"release:hotfix": "DIST=latest HOTFIX=true ./scripts/release.sh",
"release:latest": "DIST=latest BRANCH=master ./scripts/release.sh",
"release:next": "DIST=next BRANCH=next ./scripts/release.sh",
"release:cdn": "yarn setup; node ./scripts/prod.js",
"setup": "yarn install --frozen-lockfile; npm-run-all clean build:i18n",
"start": "npm-run-all setup start:examples",
"start:dev": "yarn setup; LANGUAGE=en-US BABEL_ENV=development NODE_ENV=development node --max_old_space_size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config scripts/webpack.config.js --mode development",
"start:examples": "EXAMPLES=true LANGUAGE=en-US REACT=true BABEL_ENV=development NODE_ENV=development node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js server --config scripts/styleguide.config.js --mode development",
"start:examples:legacy": "BROWSERSLIST_ENV=production yarn start:examples",
"start:npm": "yarn setup; yarn build:dev:es",
"start:storybook": "LANGUAGE=en-US REACT=true BABEL_ENV=development NODE_ENV=development start-storybook -p 6061",
"start:storybook:ci": "yarn start:storybook --ci",
"start:storybook:legacy": "BROWSERSLIST_ENV=production yarn start:storybook",
"test": "BABEL_ENV=test NODE_ENV=test yarn jest -c scripts/jest/jest.config.js",
"test:e2e": "BROWSERSLIST_ENV=test npm-run-all -p -r start:examples cy:run",
"test:e2e:open": "BROWSERSLIST_ENV=test npm-run-all -p -r start:examples cy:open",
"test:images": "BABEL_ENV=test NODE_ENV=test yarn jest -c scripts/jest/jest.images.config.js --maxWorkers=4",
"test:images:update": "BABEL_ENV=test NODE_ENV=test yarn jest -c scripts/jest/jest.images.config.js -u --maxWorkers=4",
"test:visuals": "start-server-and-test start:storybook:ci http-get://localhost:6061 test:images",
"test:visuals:update": "start-server-and-test start:storybook:ci http-get://localhost:6061 test:images:update",
"ts:defs": "tsc --declaration --emitDeclarationOnly --declarationDir es --noEmit false"
},
"browserslist": {
"production": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 iOS versions",
"IE 11"
],
"development": ["last 1 Chrome versions", "last 1 Firefox versions", "last 1 Safari versions"]
},
"lint-staged": {
"*.js": ["eslint --fix", "git add"],
"*.ts": ["eslint --ext=.ts --fix", "git add"],
"*.tsx": ["eslint --ext=.tsx --fix", "git add"],
"*.md": ["prettier --write --parser=markdown", "git add"],
"*.json": ["prettier --write --parser=json", "git add"],
"*.html": ["prettier --write --parser=html", "git add"],
"*.scss": ["prettier --write --parser=scss", "stylelint --syntax scss --fix", "git add"],
"*.css": ["prettier --write --parser=css", "stylelint --syntax css --fix", "git add"]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "./scripts/prepush.sh",
"commit-msg": "commitlint -e"
}
},
"engines": {
"node": ">=14.0.0 <15.0.0",
"yarn": ">=1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.4",
"@babel/helper-create-class-features-plugin": "^7.8.3",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-flow-strip-types": "^7.8.3",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-flow": "^7.8.3",
"@babel/preset-react": "^7.8.3",
"@babel/preset-typescript": "^7.8.3",
"@babel/template": "^7.8.3",
"@babel/types": "^7.8.3",
"@box/cldr-data": "^34.2.0",
"@box/frontend": "8.0.0",
"@box/languages": "^1.0.0",
"@box/react-virtualized": "9.22.3-rc-box.2",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@formatjs/intl-pluralrules": "^1.5.2",
"@formatjs/intl-relativetimeformat": "^4.5.9",
"@formatjs/intl-unified-numberformat": "^3.2.0",
"@hapi/address": "2.1.1",
"@sambego/storybook-state": "^2.0.1",
"@storybook/addon-actions": "^5.3.9",
"@storybook/addon-docs": "^5.3.9",
"@storybook/addon-info": "^5.3.9",
"@storybook/addon-knobs": "^5.3.9",
"@storybook/addon-links": "^5.3.9",
"@storybook/addon-notes": "^5.3.9",
"@storybook/addon-storyshots": "^5.3.9",
"@storybook/addon-viewport": "^5.3.9",
"@storybook/addons": "^5.3.9",
"@storybook/preset-typescript": "^1.1.0",
"@storybook/react": "^5.3.9",
"@svgr/core": "^5.0.1",
"@svgr/plugin-prettier": "^5.0.1",
"@svgr/plugin-svgo": "^5.1.0",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^10.4.3",
"@testing-library/react-hooks": "^3.3.0",
"@types/classnames": "^2.2.9",
"@types/color": "^3.0.2",
"@types/enzyme": "^3.10.4",
"@types/history": "^4.7.5",
"@types/jest": "^25.1.1",
"@types/jest-image-snapshot": "^2.11.0",
"@types/lodash": "^4.14.149",
"@types/node": "^13.5.2",
"@types/pikaday": "^1.7.4",
"@types/puppeteer": "^2.0.1",
"@types/react": "^16.9.18",
"@types/react-beautiful-dnd": "^13.0.0",
"@types/react-dom": "^16.9.5",
"@types/react-measure": "^2.0.6",
"@types/react-router-dom": "^5.1.3",
"@types/sinon": "^7.5.1",
"@types/webpack": "^4.41.3",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
"autoprefixer": "^9.7.4",
"axios": "0.25.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"babel-plugin-dynamic-import-node": "^2.3.0",
"babel-plugin-flow-react-proptypes": "^25.1.0",
"babel-plugin-react-intl": "^5.1.18",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-rewire": "^1.0.0",
"babel-plugin-styled-components": "^1.10.7",
"babel-preset-react-app": "^9.1.0",
"camelcase": "^5.3.1",
"circular-dependency-plugin": "^5.2.0",
"classnames": "^2.2.6",
"color": "^3.1.2",
"colors": "^1.4.0",
"conventional-changelog": "^3.1.18",
"conventional-changelog-cli": "^2.0.31",
"conventional-github-releaser": "^3.1.3",
"copyfiles": "^2.2.0",
"core-js": "^3.6.4",
"cosmiconfig": "^6.0.0",
"css-loader": "^3.4.2",
"cssnano": "^4.1.10",
"cypress": "3.8.2",
"deepmerge": "^4.2.2",
"draft-js": "^0.10.1",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.4.3",
"eslint": "^6.7.2",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-cypress": "^2.8.1",
"eslint-plugin-flowtype": "^4.6.0",
"eslint-plugin-formatjs": "^1.5.11",
"eslint-plugin-import": "^2.19.1",
"eslint-plugin-jest": "^23.1.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-lodash": "^6.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.18.0",
"eslint-plugin-react-hooks": "^2.3.0",
"filesize": "^4.1.2",
"flow-bin": "^0.95.1",
"flow-copy-source": "^2.0.9",
"flow-typed": "^2.6.2",
"form-serialize": "^0.7.2",
"formik": "^2.0.3",
"husky": "^4.0.10",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl": "^1.2.5",
"intl-messageformat": "^7.8.4",
"intl-messageformat-parser": "^3.6.4",
"jest": "^25.1.0",
"jest-image-snapshot": "^2.12.0",
"jest-puppeteer": "^4.4.0",
"js-sha1": "0.6.0",
"jsuri": "^1.3.1",
"leche": "^2.3.0",
"lint-staged": "^9.5.0",
"lodash": "^4.17.15",
"message-accumulator": "^2.1.1",
"mini-css-extract-plugin": "^0.9.0",
"mocha": "^6.2.2",
"mousetrap": "^1.6.3",
"mutationobserver-shim": "^0.3.3",
"npm-run-all": "^4.1.3",
"nsp": "^3.2.1",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"ora": "^4.0.3",
"pikaday": "^1.8.0",
"postcss-loader": "^3.0.0",
"postcss-safe-parser": "^4.0.1",
"prettier": "^1.19.1",
"prettier-eslint-cli": "^5.0.0",
"prop-types": "^15.7.2",
"properties-parser": "^0.3.1",
"puppeteer": "^2.0.0",
"query-string": "5.1.1",
"raf": "^3.4.1",
"react": "^17.0.1",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-docgen-typescript": "^1.16.1",
"react-docgen-typescript-loader": "^3.6.0",
"react-dom": "^17.0.1",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^3.11.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-popper": "^1.3.4",
"react-process-string": "^1.2.0",
"react-responsive": "8.2.0",
"react-router-dom": "^5.0.0",
"react-scrollbars-custom": "^4.0.21",
"react-styleguidist": "^8.0.6",
"react-test-renderer": "^16.13.1",
"react-tether": "1.0.5",
"react-textarea-autosize": "^7.1.0",
"regenerator-runtime": "^0.13.3",
"rimraf": "^3.0.1",
"sanitize-html": "1.21.1",
"sass": "1.34.1",
"sass-lint": "^1.13.1",
"sass-loader": "^8.0.2",
"sass-variable-parser": "^1.2.2",
"scroll-into-view-if-needed": "^2.2.20",
"semantic-release": "^16.0.2",
"simple-git": "^1.131.0",
"sinon": "^2.3.7",
"source-map-loader": "^0.2.4",
"start-server-and-test": "^1.10.8",
"storybook": "^5.3.9",
"storybook-addon-intl": "^2.4.1",
"string-replace-loader": "^2.2.0",
"style-loader": "^1.0.0",
"styled-components": "^5.0.0",
"stylelint": "^12.0.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.1.1",
"tabbable": "^1.1.3",
"ts-loader": "^6.2.1",
"typescript": "^3.7.5",
"uniqid": "^5.2.0",
"uuid": "^8.3.2",
"wait-on": "^3.3.0",
"webpack": "^4.41.5",
"webpack-bundle-analyzer": "^3.6.0",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.10.1",
"worker-farm": "^1.7.0",
"yargs": "^15.1.0"
},
"peerDependencies": {
"@box/cldr-data": "^34.2.0",
"@box/react-virtualized": "9.22.3-rc-box.2",
"@hapi/address": ">=2.0.0 <2.1.2",
"axios": "^0.25.0",
"classnames": "^2.2.5",
"color": "^3.1.2",
"draft-js": "^0.10.1",
"filesize": "^4.1.2",
"form-serialize": "^0.7.2",
"formik": "^2.0.0",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl-messageformat": "^7.8.4",
"js-sha1": "0.6.0",
"jsuri": "^1.3.1",
"lodash": "^4.17.5",
"message-accumulator": "^2.1.1",
"mousetrap": "^1.6.3",
"pikaday": "^1.8.0",
"query-string": "5.1.1",
"react": "^17.0.1",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-dom": "^17.0.1",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": ">=2.9.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-popper": "^1.3.4",
"react-process-string": "^1.2.0",
"react-responsive": "8.2.0",
"react-router-dom": "^5.0.0",
"react-scrollbars-custom": "^4.0.21",
"react-tether": "^1.0.0",
"react-textarea-autosize": "^7.1.0",
"regenerator-runtime": "^0.13.2",
"sanitize-html": "1.21.1",
"sass": "1.34.1",
"scroll-into-view-if-needed": "^2.2.20",
"tabbable": "^1.1.2",
"uuid": "^8.3.2"
},
"comments": {
"dependencies": {
"@hapi/address": "Version 2.1.2+ requires a polyfill for TextEncoder. Pinning to version 2.1.1 prevents IE11 from breaking.",
"react-tether": "Version 2.x has too many breaking changes and requires forwardRef on all components"
}
}
}