Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
188 lines (188 loc) · 7.43 KB
/
Copy pathpackage.json
File metadata and controls
188 lines (188 loc) · 7.43 KB
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
{
"name": "box-annotations",
"version": "5.3.1-beta.3",
"description": "Box Annotations",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
"sideEffects": [
"./dist/annotations.js",
"**/*.css",
"**/*.scss"
],
"repository": {
"type": "git",
"url": "git@github.com:box/box-annotations.git"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"engines": {
"node": ">=20.x",
"yarn": ">=1.10.x"
},
"devDependencies": {
"@babel/cli": "^7.25.9",
"@babel/core": "^7.25.9",
"@babel/eslint-parser": "^7.24.7",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
"@babel/plugin-transform-flow-strip-types": "^7.25.9",
"@babel/plugin-transform-object-assign": "^7.25.9",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.25.9",
"@babel/preset-react": "^7.25.9",
"@babel/preset-typescript": "^7.25.9",
"@box/blueprint-web": "^17.11.3",
"@box/blueprint-web-assets": "^5.11.10",
"@box/collaboration-popover": "^2.1.32",
"@box/combobox-with-api": "^1.42.22",
"@box/frontend": "^11.0.1",
"@box/item-icon": "^3.2.0",
"@box/languages": "^1.1.0",
"@box/readable-time": "^2.1.32",
"@box/threaded-annotations": "^4.14.0",
"@box/types": "^2.1.8",
"@box/user-selector": "^2.1.35",
"@cfaester/enzyme-adapter-react-18": "^0.8.0",
"@commitlint/cli": "^19.8.0",
"@commitlint/config-conventional": "^19.8.0",
"@formatjs/cli": "^6.16.26",
"@formatjs/intl-pluralrules": "^1.5.5",
"@formatjs/intl-relativetimeformat": "^4.5.12",
"@popperjs/core": "^2.4.0",
"@reduxjs/toolkit": "^1.3.5",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/classnames": "^2.2.10",
"@types/draft-js": "^0.10.40",
"@types/enzyme": "^3.10.5",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.14.150",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react-redux": "^7.1.33",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"autoprefixer": "^10.4.19",
"axios": "^0.34.0",
"babel-jest": "^29.7.0",
"babel-loader": "^9.2.1",
"babel-plugin-istanbul": "^6.0.0",
"babel-plugin-transform-require-ignore": "^0.1.1",
"box-ui-elements": "^28.0.0-beta.2",
"circular-dependency-plugin": "^5.2.0",
"classnames": "^2.2.5",
"clsx": "^2.1.1",
"conventional-changelog": "^8.1.3",
"conventional-changelog-conventionalcommits": "^10.3.0",
"core-js": "^3.38.1",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "^8.0.0",
"cypress": "^15.20.1",
"draft-js": "^0.11.7",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.4.4",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-cypress": "^3.6.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-formatjs": "^4.13.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^23.8.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.0",
"formik": "^2.4.9",
"husky": "^3.1.0",
"jest": "^29.7.0",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^9.5.0",
"lodash": "^4.17.15",
"mini-css-extract-plugin": "^2.10.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.5.18",
"postcss-loader": "^8.1.1",
"prettier": "^3.2.5",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-intl": "6.4.2",
"react-redux": "^9.1.2",
"redux": "^4.0.5",
"sass": "1.77.6",
"sass-loader": "^16.0.4",
"scroll-into-view-if-needed": "^2.2.24",
"style-loader": "^4.0.0",
"stylelint": "^16.26.1",
"stylelint-config-standard": "^38.0.0",
"stylelint-config-standard-scss": "^14.0.0",
"stylelint-order": "^6.0.4",
"tabbable": "^1.1.3",
"typescript": "5.2.2",
"uuid": "^14.0.0",
"wait-on": "^9.0.5",
"webpack": "^5.105.4",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.2.6",
"worker-farm": "^1.7.0"
},
"peerDependencies": {
"@box/blueprint-web": "^17.11.3",
"@box/blueprint-web-assets": "^5.11.10",
"@box/collaboration-popover": "^2.1.32",
"@box/combobox-with-api": "^1.42.22",
"@box/item-icon": "^3.2.0",
"@box/readable-time": "^2.1.32",
"@box/threaded-annotations": "^4.14.0",
"@box/types": "^2.1.8",
"@box/user-selector": "^2.1.35",
"axios": "^0.34.0"
},
"scripts": {
"build": "yarn setup && yarn build:prod:dist",
"build:dev:dist": "LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev webpack --config scripts/webpack.config.js --mode development --progress",
"build:prod:dist": "LANGUAGE=en-US BABEL_ENV=production NODE_ENV=production webpack --config scripts/webpack.config.js --mode production",
"clean": "rm -rf dist reports/* i18n/json",
"extract:i18n": "mkdir -p i18n/json && formatjs extract 'src/**/*.{js,ts,tsx}' --ignore='src/**/__tests__/**' --ignore='src/**/__mocks__/**' --out-file i18n/json/en-US.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:8001",
"lint": "npm-run-all lint:*",
"lint:js": "eslint .",
"lint:scss": "stylelint \"src/**/*.scss\"",
"lint:ts": "tsc && eslint --ext=.tsx,.ts --max-warnings=0 .",
"release:cdn": "yarn setup; node ./scripts/prod.js",
"release:custom": "scripts/release.sh -c",
"release:major": "scripts/release.sh -m",
"release:minor": "scripts/release.sh -n",
"release:patch": "scripts/release.sh -p",
"release:pre": "scripts/release.sh -x",
"setup": "yarn install && yarn clean",
"start": "yarn setup && yarn build:dev:dist --watch",
"start:dev": "yarn setup && LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev yarn webpack-dev-server --config scripts/webpack.config.js --mode development",
"start:linked": "IS_LINKED=1 yarn start",
"test": "BABEL_ENV=test NODE_ENV=test yarn jest",
"test:e2e": "node scripts/cypress.js",
"test:e2e:open": "node scripts/cypress.js -o",
"test:watch": "yarn test --watch"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e",
"pre-commit": "lint-staged",
"pre-push": "./scripts/prepush.sh"
}
},
"resolutions": {
"**/react-intl/**/@types/react": "^18.3.12",
"**/@types/react": "^18.3.12",
"**/@types/react-dom": "^18.2.0",
"draft-js/immutable": "^3.8.3"
}
}