forked from box/box-ui-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
298 lines (298 loc) · 12.3 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
{
"name": "@ortoo/box-ui-elements",
"version": "v11.0.0-beta.8",
"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",
"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"
],
"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 REACT=true yarn build:prod:dist",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev webpack --config conf/webpack.config.js --mode development --progress --colors",
"build:dev:es": "BABEL_ENV=dev NODE_ENV=dev yarn build:es --copy-files --source-maps inline --watch --ignore \"**/__tests__/**\"",
"build:es": "babel src --out-dir es",
"build:i18n": "props2es",
"build:npm": "npm-run-all clean build:i18n build:prod:npm build:prod:es",
"build:prod:es": "BABEL_ENV=npm NODE_ENV=production yarn build:es --ignore \"**/__tests__/**\"",
"build:prod:dist": "NODE_ENV=production webpack --config conf/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 conf/styleguide.config.js --mode production",
"build:prod:npm": "BABEL_ENV=production OUTPUT=dist LANGUAGE=en-US REACT=true yarn build:prod:dist",
"build:variables": "node ./conf/build-style-vars.js ./src/styles/_variables.scss ./src/styles/variables.js ./src/styles/variables.json",
"clean": "rm -rf dist es i18n/json i18n/*.js reports styleguide",
"copy:styles": "copyfiles './src/**/*.scss' es --up 1",
"copy:flow": "flow-copy-source --ignore \"**/__tests__/**\" ./src ./es",
"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:css": "stylelint \"src/**/*.scss\" --syntax scss",
"prebuild:es": "npm-run-all build:variables copy:styles copy:flow",
"release": "yarn release:beta",
"release:beta": "BRANCH=master ./conf/release.sh",
"release:latest": "BRANCH=release ./conf/release.sh",
"release:hotfix": "HOTFIX=true ./conf/release.sh",
"release:cdn": "yarn setup; node ./conf/prod.js",
"setup": "yarn install --frozen-lockfile; npm-run-all clean build:i18n",
"start": "yarn start:examples",
"start:dev": "yarn setup; LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev node --max_old_space_size=8192 node_modules/webpack-dev-server/bin/webpack-dev-server.js --config conf/webpack.config.js --mode development",
"start:examples": "yarn setup; EXAMPLES=true LANGUAGE=en-US REACT=true BABEL_ENV=dev NODE_ENV=dev node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js server --config conf/styleguide.config.js --mode development",
"start:examples:legacy": "BROWSERSLIST_ENV=production yarn start:examples",
"start:npm": "yarn setup; yarn build:dev:es",
"test": "BABEL_ENV=test NODE_ENV=test yarn jest",
"test:e2e": "npm-run-all -p -r start:examples cy:run",
"test:e2e:open": "npm-run-all -p -r start:examples cy:open"
},
"browserslist": {
"production": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 iOS versions",
"IE 11"
],
"dev": ["last 1 Chrome versions", "last 1 Firefox versions"]
},
"lint-staged": {
"linters": {
"*.js": ["eslint --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": "./conf/prepush.sh",
"commit-msg": "commitlint -e"
}
},
"jest": {
"clearMocks": true,
"restoreMocks": true,
"moduleNameMapper": {
"react-intl": "<rootDir>/conf/jest/mocks/react-intl-mocks.js",
"react-intl-locale-data": "<rootDir>/node_modules/react-intl/locale-data/en.js",
"box-ui-elements-locale-data": "<rootDir>/i18n/en-US.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/conf/jest/fileMock.js",
"\\.(css|less|scss)$": "<rootDir>/conf/jest/mocks/styleMock.js",
"react-virtualized/dist/es": "react-virtualized/dist/commonjs"
},
"transformIgnorePatterns": ["node_modules/(?!(react-virtualized/dist/es))"],
"collectCoverage": false,
"coverageDirectory": "<rootDir>/reports",
"collectCoverageFrom": ["src/**/*.js", "!**/node_modules/**", "!**/__tests__/**"],
"globalSetup": "<rootDir>/conf/jest/env-setup.js",
"roots": ["src"],
"setupFilesAfterEnv": [
"<rootDir>/node_modules/regenerator-runtime/runtime.js",
"<rootDir>/conf/jest/enzyme-adapter.js"
],
"snapshotSerializers": ["enzyme-to-json/serializer"]
},
"engines": {
"node": ">=8.x",
"yarn": ">=1.10.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-flow-strip-types": "^7.2.3",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/template": "^7.0.0",
"@babel/types": "^7.0.0",
"@box/frontend": "^1.4.0",
"@box/languages": "^1.0.0",
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"@commitlint/travis-cli": "^7.2.1",
"@hapi/address": "^2.0.0",
"autoprefixer": "^9.4.8",
"axios": "^0.19.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.5.0",
"babel-loader": "^8.0.0",
"babel-plugin-dynamic-import-node": "^2.2.0",
"babel-plugin-flow-react-proptypes": "^24.1.2",
"babel-plugin-react-intl": "^2.4.0",
"babel-plugin-react-remove-properties": "^0.2.5",
"babel-plugin-rewire": "^1.0.0",
"babel-preset-react-app": "^7.0.0",
"circular-dependency-plugin": "^5.0.2",
"classnames": "^2.2.6",
"color": "^3.0.0",
"conventional-changelog": "^2.0.3",
"conventional-changelog-cli": "^2.0.5",
"conventional-github-releaser": "^3.1.2",
"copyfiles": "^2.1.0",
"core-js": "^2.5.7",
"css-loader": "^1.0.0",
"cssnano": "^4.1.0",
"cypress": "3.2.0",
"deepmerge": "^2.1.1",
"draft-js": "^0.10.1",
"enzyme": "3.8.0",
"enzyme-adapter-react-16": "^1.12.1",
"enzyme-to-json": "^3.3.4",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-babel": "^5.2.0",
"eslint-plugin-cypress": "^2.2.1",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jest": "^21.21.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-lodash": "^5.1.0",
"eslint-plugin-prettier": "^2.6.2",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^1.6.0",
"filesize": "^4.1.2",
"flow-bin": "^0.95.1",
"flow-copy-source": "^2.0.2",
"flow-typed": "^2.5.1",
"form-serialize": "^0.7.2",
"formik": "^1.5.4",
"husky": "^1.1.2",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"intl": "^1.2.5",
"intl-messageformat": "^2.2.0",
"jest": "^24.5.0",
"jsuri": "^1.3.1",
"leche": "^2.2.3",
"lint-staged": "^8.0.4",
"lodash": "^4.17.11",
"message-accumulator": "^2.1.1",
"mini-css-extract-plugin": "^0.4.2",
"mocha": "^5.2.0",
"mousetrap": "^1.6.3",
"mutationobserver-shim": "^0.3.3",
"node-sass": "^4.9.3",
"npm-run-all": "^4.1.3",
"nsp": "^3.2.1",
"optimize-css-assets-webpack-plugin": "^5.0.1",
"pikaday": "^1.8.0",
"postcss-loader": "^3.0.0",
"postcss-safe-parser": "^4.0.1",
"prettier": "^1.16.4",
"prettier-eslint-cli": "^4.7.1",
"prop-types": "^15.6.2",
"properties-parser": "^0.3.1",
"query-string": "5.1.1",
"raf": "^3.4.0",
"react": "^16.8.0",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-dom": "^16.8.0",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^2.8.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-process-string": "^1.2.0",
"react-router-dom": "^5.0.0",
"react-styleguidist": "^8.0.6",
"react-tether": "1.0.1",
"react-textarea-autosize": "^7.1.0",
"react-virtualized": "^9.21.0",
"regenerator-runtime": "^0.13.2",
"sass-lint": "^1.12.1",
"sass-loader": "^7.1.0",
"sass-variable-parser": "^1.2.2",
"scroll-into-view-if-needed": "^2.2.20",
"semantic-release": "^16.0.0-beta.19",
"sinon": "^2.3.7",
"string-replace-loader": "^2.1.1",
"style-loader": "^0.23.0",
"stylelint": "^9.6.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-order": "^1.0.0",
"tabbable": "^1.1.3",
"uuid": "^3.3.2",
"wait-on": "^3.2.0",
"webpack": "^4.19.0",
"webpack-bundle-analyzer": "^3.0.2",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.14",
"worker-farm": "^1.6.0"
},
"peerDependencies": {
"@hapi/address": "^2.0.0",
"axios": "^0.19.0",
"classnames": "^2.2.5",
"draft-js": "^0.10.1",
"filesize": "^4.1.2",
"form-serialize": "^0.7.2",
"formik": "^1.5.4",
"ilib-tree-node": "^1.2.0",
"immutable": "^3.7.4",
"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": "^16.8.0",
"react-animate-height": "^2.0.8",
"react-beautiful-dnd": "^9.0.2",
"react-dom": "^16.8.0",
"react-draggable": "^3.3.0",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^2.8.0",
"react-measure": "^2.3.0",
"react-modal": "^3.8.1",
"react-process-string": "^1.2.0",
"react-router-dom": "^5.0.0",
"react-tether": "^1.0.0",
"react-textarea-autosize": "^7.1.0",
"react-virtualized": "^9.21.0",
"regenerator-runtime": "^0.13.2",
"scroll-into-view-if-needed": "^2.2.20",
"tabbable": "^1.1.2",
"uuid": "^3.3.2"
}
}