-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
276 lines (276 loc) · 17.9 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
{
"name": "whitelabel-explorer",
"version": "0.1.0",
"private": true,
"dependencies": {
"@apollo/react-hooks": "^3.1.2",
"@babel/core": "^7.5.5",
"@babel/register": "^7.5.5",
"@emotion/core": "^10.0.15",
"@emotion/styled": "^10.0.15",
"@fortawesome/fontawesome-svg-core": "^1.2.22",
"@fortawesome/free-brands-svg-icons": "^5.10.2",
"@fortawesome/free-regular-svg-icons": "^5.10.2",
"@fortawesome/free-solid-svg-icons": "^5.10.2",
"@fortawesome/pro-light-svg-icons": "^5.10.2",
"@fortawesome/pro-regular-svg-icons": "^5.10.2",
"@fortawesome/pro-solid-svg-icons": "^5.10.2",
"@fortawesome/react-fontawesome": "^0.1.4",
"@styled-system/css": "^5.0.23",
"@tippy.js/react": "^3.1.0",
"apollo-cache-inmemory": "^1.6.3",
"apollo-client": "^2.6.4",
"apollo-link-error": "^1.1.12",
"apollo-link-http": "^1.5.16",
"apollo-link-ws": "^1.0.19",
"axios": "^0.18.0",
"babel-plugin-styled-components": "^1.10.0",
"bignumber.js": "^7.0.1",
"buffer": "^5.1.0",
"chalk": "1.1.3",
"connected-react-router": "^6.5.2",
"cookie": "^0.4.0",
"croppie": "^2.6.4",
"dotenv": "4.0.0",
"dotenv-expand": "4.2.0",
"emotion": "^10.0.14",
"emotion-theming": "^10.0.14",
"exif-js": "^2.3.0",
"formik": "^1.4.3",
"fs-extra": "3.0.1",
"graphql": "^14.5.8",
"graphql-tag": "^2.10.1",
"history": "^4.7.2",
"husky": "^0.14.3",
"ipfs-mini": "^1.1.2",
"moment": "^2.24.0",
"moment-timezone": "^0.5.27",
"object-assign": "4.1.1",
"pluralize": "^7.0.0",
"polished": "^3.2.0",
"promise": "8.0.1",
"prop-types": "^15.6.2",
"raf": "3.4.0",
"react": "^16.9.0",
"react-blockies": "^1.4.1",
"react-datepicker": "^1.5.0",
"react-dom": "^16.9.0",
"react-helmet": "^5.2.0",
"react-intl-universal": "^2.0.3",
"react-redux": "^7.1.1",
"react-router": "^5.0.1",
"react-router-dom": "^5.0.1",
"react-router-redux": "^5.0.0-alpha.9",
"react-select": "^1.2.1",
"react-slick": "^0.25.2",
"react-textarea-autosize": "^7.0.4",
"react-toastify": "^4.1.0",
"react-toggle": "^4.0.2",
"react-transition-group": "^2.4.0",
"rebass": "^4.0.2",
"redux": "^4.0.4",
"redux-form": "^8.2.6",
"redux-saga": "^0.16.0",
"reflexbox": "^4.0.2",
"reselect": "^3.0.1",
"resolve": "1.6.0",
"rollbar": "^2.3.9",
"showdown": "^1.8.6",
"styled-components": "^4.3.2",
"styled-system": "^5.1.0",
"subscriptions-transport-ws": "^0.9.16",
"tippy.js": "^5.0.3",
"typescript": "^3.7.0-dev.20191009",
"web3": "^1.0.0-beta.34"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@babel/runtime": "^7.5.5",
"@storybook/addon-actions": "^5.2.0-rc.2",
"@storybook/addon-centered": "^5.2.0-rc.2",
"@storybook/addon-knobs": "^5.2.0-rc.2",
"@storybook/addon-links": "^5.2.0-rc.2",
"@storybook/addon-storysource": "^5.2.0-rc.2",
"@storybook/addons": "^5.2.0-beta.39",
"@storybook/react": "^5.2.0-rc.2",
"@types/autoprefixer": "9.6.1",
"@types/babel-core": "6.25.6",
"@types/babel__core": "^7.1.3",
"@types/case-sensitive-paths-webpack-plugin": "2.1.1",
"@types/croppie": "^2.5.4",
"@types/dotenv": "4.0.0",
"@types/file-loader": "^4.2.0",
"@types/fs-extra": "3.0.1",
"@types/history": "^4.7.3",
"@types/jest": "20.0.4",
"@types/mini-css-extract-plugin": "^0.8.0",
"@types/node-sass": "^4.11.0",
"@types/object-assign": "4.0.30",
"@types/optimize-css-assets-webpack-plugin": "^5.0.1",
"@types/pluralize": "^0.0.29",
"@types/prettier": "^1.18.2",
"@types/prop-types": "^15.7.1",
"@types/raf": "3.4.0",
"@types/react": "^16.9.2",
"@types/react-datepicker": "^1.8.0",
"@types/react-dev-utils": "^9.0.1",
"@types/react-dom": "^16.9.0",
"@types/react-helmet": "^5.0.9",
"@types/react-redux": "^5.0.21",
"@types/react-router": "^5.1.1",
"@types/react-router-dom": "^4.3.5",
"@types/react-router-redux": "^5.0.18",
"@types/react-select": "^1.3.4",
"@types/react-slick": "^0.23.4",
"@types/react-textarea-autosize": "^4.3.4",
"@types/react-toggle": "^4.0.2",
"@types/react-transition-group": "^2.9.2",
"@types/rebass": "^3.0.4",
"@types/redux-form": "^7.5.5",
"@types/reflexbox": "^4.0.0",
"@types/resolve": "0.0.8",
"@types/showdown": "^1.9.3",
"@types/storybook__addon-actions": "^3.4.3",
"@types/storybook__addon-centered": "^3.4.1",
"@types/storybook__addon-knobs": "^3.4.1",
"@types/storybook__addon-links": "^3.3.5",
"@types/storybook__addons": "^4.1.1",
"@types/storybook__react": "^4.0.2",
"@types/styled-components": "^4.1.18",
"@types/styled-system": "^5.1.0",
"@types/styled-system__css": "^5.0.4",
"@types/terser-webpack-plugin": "^1.2.1",
"@types/web3": "^1.0.19",
"@types/webpack": "^4.39.0",
"@types/webpack-dev-server": "^3.1.7",
"@types/webpack-manifest-plugin": "^2.0.0",
"apollo": "^2.19.1",
"array-from": "^2.1.1",
"autoprefixer": "7.1.6",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"babel-plugin-import": "^1.7.0",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"css-loader": "0.28.7",
"file-loader": "^4.2.0",
"html-webpack-plugin": "^4.0.0-beta.8",
"jest": "20.0.4",
"lint-staged": "^7.0.4",
"mini-css-extract-plugin": "^0.8.0",
"node-sass": "^4.11.0",
"node-sass-chokidar": "^1.2.2",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-flexbugs-fixes": "3.2.0",
"postcss-loader": "2.0.8",
"prettier": "^1.11.1",
"react-dev-utils": "^9.0.3",
"react-hot-loader": "^4.12.11",
"rollbar-sourcemap-webpack-plugin": "^2.5.1",
"sass-extract": "^2.1.0",
"sass-extract-js": "^0.4.0",
"sass-extract-loader": "^1.1.0",
"sass-loader": "^6.0.7",
"source-map-loader": "^0.2.3",
"style-loader": "0.19.0",
"terser-webpack-plugin": "^1.4.1",
"url-loader": "0.6.2",
"webpack": "^4.39.2",
"webpack-dev-server": "^3.8.0",
"webpack-manifest-plugin": "^2.0.4",
"whatwg-fetch": "2.0.3"
},
"lint-staged": {
"src/**/*.{js,jsx,,ts,tsx,json,css}": [
"prettier --single-quote --write",
"git add"
]
},
"scripts": {
"lint": "prettier --single-quote --write \"src/**/*.{js,jsx,,ts,tsx,json,css}\"",
"precommit": "lint-staged",
"dev": "yarn start-staging",
"start": "APP_SETTINGS_FILE=production_settings APP_LOGO=logo node scripts/start.js",
"start-local": "APP_SETTINGS_FILE=local_settings APP_LOGO=logo node scripts/start.js",
"start-staging": "APP_SETTINGS_FILE=staging_settings APP_LOGO=logo node scripts/start.js",
"start-production": "APP_SETTINGS_FILE=production_settings APP_LOGO=logo node scripts/start.js",
"start-rinkeby": "APP_SETTINGS_FILE=rinkeby_settings APP_LOGO=logo node scripts/start.js",
"start-boost": "APP_SETTINGS_FILE=boost_settings APP_LOGO=logo node scripts/start.js",
"start-consensys": "APP_SETTINGS_FILE=consensys_settings APP_LOGO=logo node scripts/start.js",
"start-japan": "APP_SETTINGS_FILE=japan_settings APP_LOGO=japan_logo node scripts/start.js",
"start-learnboost": "APP_SETTINGS_FILE=learnboost_settings APP_LOGO=surge_logo node scripts/start.js",
"start-moksha": "APP_SETTINGS_FILE=moksha_settings APP_LOGO=moksha_logo node scripts/start.js",
"start-boston": "APP_SETTINGS_FILE=boston_settings APP_LOGO=boston_logo node scripts/start.js",
"start-waterloo":"APP_SETTINGS_FILE=waterloo_settings APP_LOGO=waterloo_logo node scripts/start.js",
"gqt": "apollo client:codegen --target=typescript --config=apollo.config.js",
"build": "node scripts/build.js",
"test": "node scripts/test.js --env=jsdom",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"deploy-storybook": "build-storybook && aws s3 sync storybook-static s3://components.bounties.network/ --acl public-read",
"deploy-berlin": "APP_SETTINGS_FILE=berlin_settings APP_LOGO=berlin_logo npm run build && aws s3 sync build/. s3://berlin.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://berlin.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-bgc": "APP_SETTINGS_FILE=bgc_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://bgc.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://bgc.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-bees": "APP_SETTINGS_FILE=bees_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://bees.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://bees.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-boost": "APP_SETTINGS_FILE=boost_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://boost.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://boost.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-boston": "APP_SETTINGS_FILE=boston_settings APP_LOGO=boston_logo npm run build && aws s3 sync build/. s3://boston.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://boston.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-colorado": "APP_SETTINGS_FILE=colorado_settings APP_LOGO=colorado_logo npm run build && aws s3 sync build/. s3://colorado.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://colorado.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-consensys": "APP_SETTINGS_FILE=consensys_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://consensys.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://consensys.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-coverage": "APP_SETTINGS_FILE=coverage_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://coverage.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://coverage.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-test-coverage": "APP_SETTINGS_FILE=test_coverage_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://test.coverage.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://test.coverage.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-ethscholars": "APP_SETTINGS_FILE=ethscholars_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://ethscholars.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://ethscholars.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-hiring": "APP_SETTINGS_FILE=hiring_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://hiring.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://hiring.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-japan": "APP_SETTINGS_FILE=japan_settings APP_LOGO=japan_logo npm run build && aws s3 sync build/. s3://japan.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://japan.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-korea": "APP_SETTINGS_FILE=korea_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://korea.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://korea.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-learnboost": "APP_SETTINGS_FILE=learnboost_settings APP_LOGO=surge_logo npm run build && aws s3 sync build/. s3://learnboost.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://learnboost.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-paris": "APP_SETTINGS_FILE=paris_settings APP_LOGO=paris_logo npm run build && aws s3 sync build/. s3://paris.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://paris.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-prague": "APP_SETTINGS_FILE=prague_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://prague.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://prague.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-production": "APP_SETTINGS_FILE=production_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://explorer.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://explorer.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-moksha": "APP_SETTINGS_FILE=moksha_settings APP_LOGO=moksha_logo npm run build && aws s3 sync build/. s3://moksha.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://moksha.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-nyc": "APP_SETTINGS_FILE=nyc_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://nyc.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://nyc.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-rinkeby": "APP_SETTINGS_FILE=rinkeby_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://rinkeby.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://rinkeby.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-sa": "APP_SETTINGS_FILE=sa_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://sa.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://sa.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-sf": "APP_SETTINGS_FILE=sf_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://sf.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://sf.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-staging": "APP_SETTINGS_FILE=staging_settings APP_LOGO=logo npm run build && aws s3 sync build/. s3://staging.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://staging.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-surge": "APP_SETTINGS_FILE=surge_settings APP_LOGO=surge_logo npm run build && aws s3 sync build/. s3://surge.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://surge.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-waterloo": "APP_SETTINGS_FILE=waterloo_settings APP_LOGO=waterloo_logo npm run build && aws s3 sync build/. s3://waterloo.bounties.network --acl public-read --exclude index.html --cache-control max-age=31536000 && aws s3 cp build/index.html s3://waterloo.bounties.network --acl public-read --cache-control 'no-cache, no-store, must-revalidate'",
"deploy-all": "npm run deploy-production && npm run deploy-rinkeby && npm run deploy-prague && npm run deploy-colorado && npm run deploy-bgc && npm run deploy-boost && npm run deploy-korea && npm run deploy-nyc && npm run deploy-surge && npm run deploy-consensys && npm run deploy-ethscholars && npm run deploy-moksha && npm run deploy-berlin && npm run deploy-boston && npm run deploy-coverage && npm run deploy-test-coverage && npm run deploy-japan && npm run deploy-sa && npm run deploy-sf && npm run deploy-learnboost && npm run deploy-waterloo"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}"
],
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}",
"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx|mjs)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web"
},
"moduleFileExtensions": [
"web.js",
"js",
"json",
"web.jsx",
"jsx",
"node",
"mjs"
]
}
}