-
Notifications
You must be signed in to change notification settings - Fork 116
/
package.json
160 lines (160 loc) · 6.66 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
{
"name": "box-content-preview",
"version": "3.0.0",
"description": "Box Content Preview UI Element",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "[email protected]:box/box-content-preview.git"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.18.6",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@box/frontend": "^6.4.0",
"@box/languages": "^1.0.0",
"@box/react-virtualized": "9.22.3-rc-box.2",
"@commitlint/cli": "^8.2.0",
"@commitlint/config-conventional": "^8.2.0",
"@commitlint/travis-cli": "^8.2.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/classnames": "^2.2.11",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.14.149",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.1",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"autoprefixer": "^9.6.1",
"axios": "^0.24.0",
"babel-loader": "^8.3.0",
"babel-plugin-transform-require-ignore": "^0.1.1",
"box-annotations": "^2.3.0",
"box-ui-elements": "^20.0.0",
"chai": "^4.2.0",
"classnames": "^2.2.6",
"conventional-changelog-cli": "^2.0.28",
"conventional-github-releaser": "^3.1.3",
"create-react-class": "^15.6.2",
"css-loader": "^3.1.0",
"cypress": "^12.15.0",
"eslint": "^8.43.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.7.0",
"eslint-import-resolver-webpack": "^0.11.1",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-chai-friendly": "^0.4.1",
"eslint-plugin-cypress": "^2.8.1",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-formatjs": "^1.5.4",
"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.17.0",
"eslint-plugin-react-hooks": "^1.7.0",
"file-loader": "^4.1.0",
"fscreen": "^1.0.2",
"husky": "^3.1.0",
"i18n-webpack-plugin": "^1.0.0",
"jest": "^26.4.0",
"jest-canvas-mock": "^2.2.0",
"jsuri": "^1.3.1",
"lint-staged": "^9.5.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^0.8.0",
"mock-local-storage": "^1.1.15",
"mojito-rb-gen": "^0.0.1",
"npm-run-all": "^4.1.5",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
"postcss-sass": "^0.4.1",
"prettier": "^1.19.1",
"raw-loader": "^3.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-intl": "^6.4.2",
"react-tether": "^1.0.5",
"sass": "1.34.1",
"sass-loader": "^7.1.0",
"sinon": "^9.0.3",
"style-loader": "^0.23.1",
"stylelint": "^12.0.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^19.0.0",
"stylelint-order": "^3.1.1",
"terser": "^5.31.0",
"typescript": "^5.0.4",
"uglifyjs-webpack-plugin": "^2.1.3",
"wait-on": "^7.2.0",
"webpack": "^4.47.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^3.3.6",
"webpack-dev-server": "^3.11.2"
},
"engines": {
"node": ">=18.x",
"yarn": ">=1.19.x"
},
"scripts": {
"build": "yarn setup && yarn clean && yarn build:i18n && yarn build:dev",
"build:ci": "yarn setup && yarn webpack --progress --colors --config build/webpack.config.js",
"build:dev": "BABEL_ENV=dev NODE_ENV=dev yarn webpack --progress --colors --config build/webpack.config.js",
"build:i18n": "mojito-rb-gen -s src/i18n -o src/i18n/json -b en-US.properties",
"build:prod": "BABEL_ENV=production NODE_ENV=production node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --progress --colors --config build/webpack.config.js",
"clean": "rm -rf dist && rm -rf reports/coverage && rm -rf src/i18n/json",
"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://127.0.0.1:8000",
"lint": "npm-run-all lint:*",
"lint:css": "NODE_ENV=dev yarn stylelint 'src/lib/**/*.scss'",
"lint:js": "NODE_ENV=dev yarn eslint src/lib",
"lint:ts": "tsc && eslint --ext=.tsx,.ts --max-warnings=0 .",
"release": "yarn setup && yarn clean && yarn build:i18n && yarn lint && yarn test && yarn build:prod",
"release:major": "./build/release.sh -m",
"release:minor": "./build/release.sh -n",
"release:patch": "./build/release.sh -p",
"setup": "yarn install",
"start": "yarn setup && yarn build:dev --watch",
"start:linked": "yarn link box-annotations && IS_LINKED=1 yarn start",
"start:dev": "yarn build:i18n && LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev yarn webpack-dev-server --config build/webpack.config.js",
"start:dev:linked": "yarn link box-annotations && IS_LINKED=1 yarn start:dev",
"test": "./build/verify_custom_updates.sh yarn setup && NODE_ENV=test yarn jest",
"test:ci": "yarn test --ci --maxWorkers=4",
"test:e2e": "npm-run-all -p -r start:dev cy:run",
"test:e2e:open": "npm-run-all -p -r start:dev cy:open",
"test:watch": "yarn test --watch",
"upgrade:annotations": "./build/upgrade_annotations.sh",
"upgrade:pdfjs": "./build/upgrade_pdfjs.sh",
"upgrade:dependency": "./build/upgrade_dependency.sh"
},
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Safari versions",
"last 2 Edge versions",
"last 2 iOS versions",
"IE 11"
],
"husky": {
"hooks": {
"commit-msg": "commitlint -e",
"pre-commit": "lint-staged",
"pre-push": "./build/prepush.sh"
}
},
"resolutions": {
"mojito-rb-gen/merge": "1.2.1",
"**/react-intl/**/@types/react": "18.3.1",
"cheerio": "1.0.0-rc.12"
}
}