forked from box/box-annotations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
214 lines (214 loc) · 8.51 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
{
"name": "box-annotations",
"version": "3.1.0",
"description": "Box Annotations",
"author": "Box (https://www.box.com/)",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "[email protected]:box/box-annotations.git"
},
"bugs": {
"url": "https://github.com/box/box-annotations/issues"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"devEngines": {
"node": ">=8.x",
"npm": ">=3.x",
"yarn": ">=1.0.0"
},
"peerDependencies": {
"box-react-ui": "^26.1.1",
"draft-js": "^0.10.5",
"form-serialize": "^0.7.2",
"immutable": "^3.7.4",
"lodash": "^4.17.10",
"react": "^16.4.2",
"react-dom": "^16.3.1",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^2.4.0",
"react-process-string": "^1.2.0",
"react-textarea-autosize": "^7.0.4",
"scroll-into-view-if-needed": "^2.2.16"
},
"devDependencies": {
"autoprefixer": "^9.1.3",
"axios": "^0.18.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.4.2",
"babel-loader": "^7.1.5",
"babel-plugin-flow-react-proptypes": "^24.1.1",
"babel-plugin-react-intl": "^2.4.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-require-ignore": "^0.1.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2016": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"bluebird": "^3.5.2",
"box-locales": "^0.0.1",
"box-node-sdk": "^1.22.0",
"box-react-ui": "^26.1.1",
"chai": "^4.1.2",
"chai-dom": "^1.8.0",
"circular-dependency-plugin": "^5.0.2",
"classnames": "^2.2.5",
"codeceptjs-webdriverio": "^1.1.0",
"commitlint": "^7.0.0",
"conventional-changelog-cli": "^2.0.5",
"conventional-github-releaser": "^3.1.2",
"core-js": "^2.5.7",
"css-loader": "^1.0.0",
"cssnano-cli": "^1.0.5",
"draft-js": "^0.10.5",
"enzyme": "^3.4.4",
"enzyme-adapter-react-16": "^1.2.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.4.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-import-resolver-webpack": "^0.10.1",
"eslint-plugin-babel": "^5.1.0",
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"extract-text-webpack-plugin": "^3.0.2",
"fetch-mock": "^6.5.2",
"fetch-mock-forwarder": "^1.0.0",
"flow-bin": "^0.79.0",
"flow-typed": "^2.5.1",
"form-serialize": "^0.7.2",
"husky": "^1.1.2",
"immutable": "^3.7.4",
"jest": "^23.5.0",
"jest-canvas-mock": "^1.1.0",
"jws": "^3.1.5",
"lint-staged": "^7.2.2",
"mini-css-extract-plugin": "^0.4.2",
"mocha": "^5.2.0",
"node-sass": "^4.9.3",
"nsp": "^3.2.1",
"optimize-css-assets-webpack-plugin": "^4.0.2",
"pikaday": "^1.8.0",
"postcss-loader": "^3.0.0",
"prettier": "^1.14.2",
"prettier-eslint-cli": "^4.4.2",
"prop-types": "^15.6.1",
"properties-parser": "^0.3.1",
"pug": "^2.0.3",
"pug-code-gen": "^2.0.1",
"pug-filters": "^3.1.0",
"pug-lexer": "^4.0.0",
"raf": "^3.4.0",
"rangy": "^1.3.0",
"raw-loader": "^0.5.1",
"rbush": "^2.0.1",
"react": "^16.4.2",
"react-dom": "^16.3.1",
"react-immutable-proptypes": "^2.1.0",
"react-intl": "^2.4.0",
"react-process-string": "^1.2.0",
"react-styleguidist": "^7.3.0",
"react-tether": "^1.0.1",
"react-textarea-autosize": "^7.0.4",
"sass-loader": "^7.1.0",
"scroll-into-view-if-needed": "^2.2.16",
"style-loader": "^0.23.0",
"stylelint": "^9.5.0",
"stylelint-config-standard": "^18.0.0",
"stylelint-order": "^1.0.0",
"stylelint-scss": "^3.3.0",
"tabbable": "^3.1.1",
"uglifyjs-webpack-plugin": "^1.3.0",
"webpack": "^4.12.0",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-cli": "^3.0.7",
"whatwg-fetch": "^2.0.3"
},
"scripts": {
"build": "yarn install && LANGUAGE=en-US BABEL_ENV=production NODE_ENV=production CI=1 node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js -p --progress --colors --config build/webpack.config.js",
"build-locales": "node ./build/props-to-es2015.js",
"build-prod": "BABEL_ENV=production NODE_ENV=production webpack --config build/webpack.config.js --mode production",
"build-variables": "node ./build/build-style-vars.js ./src/styles/_variables.scss ./src/styles/variables.js ./src/styles/variables.json",
"watch": "yarn install && LANGUAGE=en-US BABEL_ENV=dev NODE_ENV=dev ./node_modules/.bin/webpack --watch --progress --colors --config build/webpack.config.js --mode development",
"test": "yarn install && NODE_ENV=test yarn run jest",
"debug": "yarn install && NODE_ENV=test yarn run jest --watch",
"setup-travis": "cd functional-tests && yarn install && node app.js",
"selenium-build": "LANGUAGE=en-US BABEL_ENV=production NODE_ENV=production CI=1 node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js -p --progress --colors --config build/webpack.selenium.config.js",
"functional-tests": "node functional-tests/app.js & node ./node_modules/codeceptjs/bin/codecept.js run --steps",
"functional-tests-ci": "yarn run pre-build && yarn run selenium-build && node ./node_modules/codeceptjs/bin/codecept.js run --steps",
"lint": "NODE_ENV=dev ./node_modules/.bin/eslint src && ./node_modules/.bin/stylelint 'src/**/*.scss'",
"precommit": "lint-staged",
"commitmsg": "commitlint -e",
"prepush": "./build/prepush.sh",
"pre-build": "yarn install && yarn run clean && yarn run build-locales",
"flow": "flow check",
"flow-typed": "flow-typed",
"flow-typed-update": "yarn add flow-typed && yarn run flow-typed update -i dev",
"prettier": "prettier-eslint \"src/**/*.js\" --print-width 120 --single-quote --tab-width 4 --write",
"ci": "yarn nsp && yarn run pre-build && yarn run lint && yarn install && yarn run test",
"clean": "rm -rf lib functional-tests/lib reports/* i18n/json i18n/*.js styleguide",
"github-release": "./node_modules/.bin/conventional-github-releaser",
"changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md --same-file",
"minor": "./build/release.sh -n && ./build/publish.sh",
"major": "./build/release.sh -m && ./build/publish.sh",
"patch": "./build/release.sh -p && ./build/publish.sh",
"nsp": "nsp check --reporter summary",
"upgrade-brui": "./build/upgrade_brui.sh",
"styleguide": "yarn run pre-build && 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 build/styleguide.config.js --mode development",
"styleguide-static": "LANGUAGE=en-US REACT=true BABEL_ENV=production NODE_ENV=production node --max_old_space_size=8192 node_modules/react-styleguidist/bin/styleguidist.js build --config build/styleguide.config.js --mode production"
},
"lint-staged": {
"src/**/*.js": [
"prettier-eslint --print-width 120 --single-quote --tab-width 4 --write",
"git add"
]
},
"jest": {
"clearMocks": true,
"globals": {
"__NAME__": "name",
"__VERSION__": "version",
"__LANGUAGE__": "en-US"
},
"setupFiles": [
"jest-canvas-mock"
],
"moduleNameMapper": {
"react-intl": "<rootDir>/test-utils/react-intl-mocks.js",
"intl": "<rootDir>/test-utils/lib-intl-mock.js",
"react-intl-locale-data": "<rootDir>/node_modules/react-intl/locale-data/en.js",
"box-annotations-locale-data": "<rootDir>/test-utils/i18nMock.js",
"box-react-ui-locale-data": "<rootDir>/test-utils/i18nMock.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test-utils/fileMock.js",
"\\.(css|less|html)$": "<rootDir>/test-utils/styleMock.js"
},
"transformIgnorePatterns": [
"node_modules/(?!(box-react-ui)/)"
],
"collectCoverage": false,
"coverageDirectory": "<rootDir>/reports",
"collectCoverageFrom": [
"src/**/*.js",
"!**/node_modules/**",
"!**/__tests__/**"
],
"setupTestFrameworkScriptFile": "<rootDir>/build/enzyme-adapter.js",
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
},
"resolutions": {
"uglify-es": "3.3.4"
}
}