forked from opencollective/opencollective-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
264 lines (264 loc) · 9.59 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
{
"name": "opencollective-frontend",
"version": "2.2.0",
"repository": {
"type": "git",
"url": "https://github.com/opencollective/opencollective-frontend.git"
},
"private": true,
"engines": {
"node": "16.x",
"npm": "8.x"
},
"dependencies": {
"@apollo/client": "3.3.21",
"@formatjs/intl-relativetimeformat": "11.0.3",
"@hcaptcha/react-hcaptcha": "1.4.4",
"@hyperwatch/hyperwatch": "3.8.2",
"@material-ui/core": "4.12.4",
"@opencollective/taxes": "3.4.0",
"@popperjs/core": "2.11.5",
"@sentry/browser": "7.10.0",
"@sentry/node": "7.10.0",
"@shopify/address": "4.0.5",
"@stripe/react-stripe-js": "1.10.0",
"@stripe/stripe-js": "1.35.0",
"@styled-icons/boxicons-regular": "10.38.0",
"@styled-icons/boxicons-solid": "10.38.0",
"@styled-icons/fa-brands": "10.38.0",
"@styled-icons/fa-solid": "10.34.0",
"@styled-icons/feather": "10.34.0",
"@styled-icons/icomoon": "10.34.0",
"@styled-icons/ionicons-solid": "10.34.0",
"@styled-icons/material": "10.34.0",
"@styled-icons/octicons": "10.44.0",
"@styled-icons/remix-line": "10.18.0",
"@styled-system/css": "5.1.5",
"@styled-system/prop-types": "5.1.5",
"@styled-system/theme-get": "5.1.2",
"@transferwise/approve-api-action-helpers": "0.9.3",
"accepts": "1.3.8",
"apexcharts": "3.35.4",
"bluebird": "3.7.2",
"canvas-confetti": "1.5.1",
"classnames": "2.3.1",
"cloudflare-ip": "0.0.7",
"cookie-parser": "1.4.6",
"copy-to-clipboard": "3.3.2",
"country-currency-emoji-flags": "1.0.9",
"cross-fetch": "3.1.5",
"currency-symbol-map": "5.1.0",
"dayjs": "1.11.4",
"debug": "4.3.4",
"dotenv": "16.0.1",
"draft-js": "0.11.7",
"express": "4.18.1",
"express-basic-auth": "1.2.1",
"express-http-proxy": "1.6.3",
"express-limiter": "1.6.1",
"express-winston": "4.2.0",
"express-ws": "5.0.2",
"file-saver": "2.0.5",
"focus-trap-react": "9.0.2",
"formik": "2.2.9",
"glob": "8.0.3",
"graphql": "16.5.0",
"helmet": "5.1.1",
"jsdom": "20.0.0",
"jsonwebtoken": "8.5.1",
"load-script": "2.0.0",
"lodash": "4.17.21",
"memoize-one": "6.0.0",
"next": "12.2.4",
"node-fetch": "2.6.7",
"nodemailer": "^6.7.2",
"nprogress": "0.2.0",
"payment": "2.4.6",
"polished": "4.2.2",
"prop-types": "15.8.1",
"qrcode.react": "3.1.0",
"react": "17.0.2",
"react-apexcharts": "1.4.0",
"react-dnd": "15.1.2",
"react-dnd-html5-backend": "15.1.3",
"react-dom": "17.0.2",
"react-dropzone": "14.2.2",
"react-easy-crop": "4.4.2",
"react-flip-move": "3.0.4",
"react-geosuggest": "2.14.1",
"react-intl": "6.0.5",
"react-popper": "2.3.0",
"react-scrollchor": "7.0.2",
"react-select": "5.4.0",
"react-swipeable": "7.0.0",
"react-text-mask": "^5.4.3",
"react-window": "1.8.7",
"redis": "3.1.2",
"sanitize-html": "2.7.1",
"slugify": "1.6.5",
"speakeasy": "2.0.0",
"styled-components": "5.3.5",
"styled-system": "5.1.5",
"throng": "5.0.0",
"trix": "1.3.1",
"uuid": "8.3.2",
"validator": "13.7.0",
"winston": "3.8.1"
},
"scripts": {
"build": "npm-run-all build:updates build:next build:server",
"build:e2e": "cross-env NODE_ENV=development OC_ENV=e2e npm run build",
"build:clean": "shx rm -rf dist .next",
"build:langs": "npm run langs:update",
"build:next": "cross-env scripts/build_next.sh",
"build:server": "cross-env scripts/build_server.sh",
"build:updates": "npm --prefix node_modules/cloudflare-ip run update-list",
"clean": "npm-run-all build:clean test:clean",
"commit": "git-cz",
"cypress:open": "cross-env TZ=UTC cypress open",
"cypress:run": "cross-env TZ=UTC cypress run",
"depcheck": "npx depcheck",
"deploy:production": "cross-env ./scripts/pre-deploy.sh production && git push production main",
"deploy:staging": "cross-env ./scripts/pre-deploy.sh staging && git push -f staging main",
"dev": "node server",
"docs:generate:contribution-flow": "babel-node ./scripts/docs/contribution-flow.js",
"git:clean": "cross-env ./scripts/git_clean.sh",
"graphql:get-schema": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:updateV1": "babel-node ./scripts/update-gql-schemas.js http://localhost:3060/graphql/v1 lib/graphql/schema.graphql && prettier lib/graphql/schema.graphql --write",
"graphql:updateV2": "babel-node ./scripts/update-gql-schemas.js http://localhost:3060/graphql/v2 lib/graphql/schemaV2.graphql && prettier lib/graphql/schemaV2.graphql --write",
"heroku-cleanup": "rm -rf .next/cache && find node_modules/@next -depth -maxdepth 1 -type d -name 'swc*' -exec rm -rf {} \\; -prune",
"langs:build": "formatjs extract \"{components,lib,pages}/**/*.js\" --out-file \"dist/messages/messages.json\" --throws",
"langs:check": "cross-env scripts/check_translations.sh",
"langs:translate": "babel-node scripts/translate.js",
"langs:update": "npm-run-all build:clean langs:build langs:translate",
"lint": "eslint . --ignore-path .gitignore",
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"optimize-png": "npm install --no-save imagemin imagemin-optipng imagemin-pngquant && babel-node ./scripts/optimize-png",
"prettier": "prettier \"*.@(js|json|md)\" \"@(components|lib|pages|scripts|server|test|stories)/**/*.@(js|json|md|mdx)\"",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"start": "node dist/server",
"start:ci": "nyc --silent --exclude \".next/**\" node server",
"start:e2e": "cross-env TZ=UTC NODE_ENV=production OC_ENV=e2e node server",
"styleguide:build": "build-storybook -s public",
"styleguide:dev": "start-storybook -p 6006 -s public",
"test": "npm run test:jest",
"test:clean": "shx rm -rf test/cypress/screenshots test/cypress/videos coverage .nyc_output",
"test:coverage": "codecov",
"test:e2e": "npm run cypress:run",
"test:e2e:0": "cross-env TZ=UTC cypress run --spec \"test/cypress/integration/0*.js\"",
"test:e2e:1": "cross-env TZ=UTC cypress run --spec \"test/cypress/integration/1*.js\"",
"test:e2e:2": "cross-env TZ=UTC cypress run --spec \"test/cypress/integration/2*.js\"",
"test:e2e:3": "cross-env TZ=UTC cypress run --spec \"test/cypress/integration/3*.js\"",
"test:jest": "cross-env NODE_ENV=test TZ=UTC jest components lib pages",
"test:update": "npm run test:jest -- --updateSnapshot"
},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/eslint-parser": "^7.17.0",
"@babel/node": "^7.16.8",
"@cypress/code-coverage": "^3.9.12",
"@formatjs/cli": "^5.0.0",
"@storybook/addon-actions": "6.5.10",
"@storybook/addon-docs": "6.5.10",
"@storybook/addon-essentials": "6.5.10",
"@storybook/addon-links": "6.5.10",
"@storybook/react": "6.5.10",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
"babel-loader": "^8.2.3",
"babel-plugin-formatjs": "^10.3.17",
"babel-plugin-istanbul": "^6.1.1",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-react-docgen": "^4.2.1",
"babel-plugin-react-remove-properties": "^0.3.0",
"babel-plugin-styled-components": "^2.0.2",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cheerio": "1.0.0-rc.12",
"codecov": "^3.8.3",
"commitizen": "^4.2.4",
"cross-env": "^7.0.3",
"css-loader": "^6.6.0",
"cypress": "^10.1.0",
"cypress-file-upload": "^3.5.3",
"cz-conventional-changelog": "^3.3.0",
"enzyme": "^3.11.0",
"eslint": "^8.8.0",
"eslint-config-next": "^12.0.10",
"eslint-config-opencollective": "^3.0.3",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-formatjs": "^4.0.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-styled-components-a11y": "1.0.0",
"file-loader": "^6.2.0",
"html-loader": "^3.0.0",
"husky": "^4.3.8",
"jest": "^28.0.0",
"jest-styled-components": "^7.0.8",
"jsdoc-api": "^7.1.1",
"lint-staged": "^10.5.4",
"markdown-loader": "^8.0.0",
"mkdirp": "^1.0.4",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "2.7.1",
"raf": "^3.4.1",
"raw-loader": "^4.0.2",
"react-test-renderer": "^17.0.2",
"shx": "^0.3.4",
"storybook-addon-designs": "^6.2.1",
"typescript": "^4.5.5",
"url-loader": "^4.1.1",
"webpack-bundle-analyzer": "^4.5.0"
},
"jest": {
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/mocks/fileMock.js",
"\\.(css|less)$": "<rootDir>/test/mocks/styleMock.js"
},
"setupFiles": [
"<rootDir>/test/setup.js"
],
"testPathIgnorePatterns": [
"/.next/",
"/dist/",
"/node_modules/",
"/.history"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,md,graphql}": [
"prettier --write"
]
},
"depcheck": {
"ignores": [
"@formatjs/intl-relativetimeformat",
"cheerio",
"eslint-config-next",
"imagemin",
"imagemin-optipng",
"imagemin-pngquant",
"@storybook/*",
"@shopify/address",
"storybook-addon-designs"
]
}
}