forked from opencollective/opencollective-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
299 lines (299 loc) · 11.2 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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
{
"name": "opencollective-frontend",
"version": "2.2.0",
"repository": {
"type": "git",
"url": "https://github.com/opencollective/opencollective-frontend.git"
},
"private": true,
"engines": {
"node": "18.x",
"npm": "8.x"
},
"dependencies": {
"@apollo/client": "3.3.21",
"@dnd-kit/core": "6.0.8",
"@dnd-kit/sortable": "7.0.2",
"@dnd-kit/utilities": "3.2.1",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@formatjs/intl-relativetimeformat": "11.2.1",
"@graphql-typed-document-node/core": "3.2.0",
"@hcaptcha/react-hcaptcha": "1.8.1",
"@hyperwatch/hyperwatch": "3.9.4",
"@mui/material": "5.12.1",
"@mui/styles": "5.12.0",
"@opencollective/taxes": "4.0.2",
"@popperjs/core": "2.11.7",
"@sentry/browser": "^7.49.0",
"@sentry/nextjs": "^7.49.0",
"@shopify/address": "4.1.0",
"@stripe/react-stripe-js": "1.16.5",
"@stripe/stripe-js": "1.52.1",
"@styled-icons/bootstrap": "10.47.0",
"@styled-icons/boxicons-regular": "10.47.0",
"@styled-icons/boxicons-solid": "10.47.0",
"@styled-icons/fa-brands": "10.47.0",
"@styled-icons/fa-solid": "10.47.0",
"@styled-icons/feather": "10.47.0",
"@styled-icons/heroicons-outline": "10.47.0",
"@styled-icons/icomoon": "10.46.0",
"@styled-icons/ionicons-solid": "10.46.0",
"@styled-icons/material": "10.47.0",
"@styled-icons/octicons": "10.47.0",
"@styled-icons/remix-line": "10.46.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.39.0",
"bluebird": "3.7.2",
"canvas-confetti": "1.6.0",
"classnames": "2.3.2",
"cloudflare-ip": "0.0.7",
"cookie-parser": "1.4.6",
"copy-to-clipboard": "3.3.3",
"country-currency-emoji-flags": "1.0.9",
"cross-fetch": "3.1.5",
"currency-symbol-map": "5.1.0",
"dayjs": "1.11.7",
"debug": "4.3.4",
"diff": "5.1.0",
"dotenv": "16.0.3",
"draft-js": "0.11.7",
"express": "4.18.2",
"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": "10.1.1",
"formik": "2.2.9",
"glob": "8.1.0",
"graphql": "15.8.0",
"helmet": "6.1.5",
"jsdom": "21.1.1",
"jsonwebtoken": "8.5.1",
"load-script": "2.0.0",
"lodash": "4.17.21",
"memoize-one": "6.0.0",
"next": "12.3.4",
"node-fetch": "2.6.8",
"nodemailer": "6.9.1",
"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-animate-height": "3.1.1",
"react-apexcharts": "1.4.0",
"react-dom": "17.0.2",
"react-dropzone": "14.2.3",
"react-easy-crop": "4.7.4",
"react-flip-move": "3.0.5",
"react-geosuggest": "2.14.1",
"react-intl": "6.4.1",
"react-is": "17.0.2",
"react-password-strength-bar": "0.4.1",
"react-popper": "2.3.0",
"react-scrollchor": "7.0.2",
"react-select": "5.5.9",
"react-swipeable": "7.0.0",
"react-text-mask": "5.5.0",
"react-window": "1.8.9",
"redis": "3.1.2",
"sanitize-html": "2.10.0",
"slugify": "1.6.6",
"spdx-license-list": "6.6.0",
"speakeasy": "2.0.0",
"styled-components": "5.3.9",
"styled-system": "5.1.5",
"throng": "5.0.0",
"trix": "2.0.4",
"uuid": "9.0.0",
"validator": "13.9.0",
"winston": "3.8.2"
},
"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 --e2e",
"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:codegen": "graphql-codegen --config scripts/config/graphql-codegen.ts",
"graphql:get-schema": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2 graphql:codegen",
"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,ts,tsx}\" --ignore='**/*.d.ts' --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 langs:build langs:translate",
"langs:update-progress": "babel-node scripts/update-translation-progress.js && prettier --write lib/constants/locales.js",
"lint": "eslint . --ignore-path .gitignore --ext .js,.jsx,.ts,.tsx",
"lint:fix": "npm run lint -- --fix",
"lint:quiet": "npm run lint -- --quiet",
"prettier": "prettier \"*.@(js|ts|tsx|json|md)\" \"@(components|lib|pages|scripts|server|test|stories)/**/*.@(js|ts|tsx|json|md|mdx)\"",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"publish-components": "npm run script scripts/publish-components/index.ts $1 -- $@",
"script": "babel-node --extensions .js,.ts,.tsx -- $@",
"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",
"type:check": "tsc",
"jest": "cross-env NODE_ENV=test TZ=UTC jest"
},
"devDependencies": {
"@babel/core": "^7.17.0",
"@babel/eslint-parser": "^7.17.0",
"@babel/node": "^7.16.8",
"@cypress/code-coverage": "^3.10.4",
"@formatjs/cli": "^5.0.0",
"@graphql-codegen/cli": "2.16.5",
"@graphql-codegen/gql-tag-operations-preset": "^1.5.5",
"@next/bundle-analyzer": "^13.3.0",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-image": "^3.0.2",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-typescript": "^9.0.1",
"@storybook/addon-actions": "6.5.16",
"@storybook/addon-docs": "6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-links": "6.5.16",
"@storybook/builder-webpack5": "6.5.16",
"@storybook/manager-webpack5": "6.5.16",
"@storybook/react": "6.5.16",
"@types/react": "17.0.58",
"@types/styled-components": "^5.1.26",
"@types/styled-system": "^5.1.16",
"@typescript-eslint/eslint-plugin": "^5.59.0",
"@typescript-eslint/parser": "^5.59.0",
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
"babel-loader": "^8.2.3",
"babel-plugin-formatjs": "^10.5.0",
"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.1.1",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cheerio": "1.0.0-rc.12",
"circular-dependency-plugin": "^5.2.2",
"codecov": "^3.8.3",
"commander": "^10.0.1",
"commitizen": "^4.3.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.3",
"cypress": "^12.10.0",
"cz-conventional-changelog": "^3.3.0",
"enzyme": "^3.11.0",
"eslint": "^8.38.0",
"eslint-config-next": "^12.0.10",
"eslint-config-opencollective": "^3.0.3",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-cypress": "^2.13.2",
"eslint-plugin-formatjs": "^4.10.0",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^9.0.0",
"eslint-plugin-styled-components-a11y": "1.0.0",
"file-loader": "^6.2.0",
"fs-extra": "^11.1.1",
"html-loader": "^4.2.0",
"husky": "^4.3.8",
"jest": "^29.5.0",
"jest-styled-components": "^7.1.1",
"jsdoc-api": "^8.0.0",
"lint-staged": "^10.5.4",
"markdown-loader": "^8.0.0",
"mkdirp": "^2.0.0",
"node-polyfill-webpack-plugin": "^2.0.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "2.8.7",
"raf": "^3.4.1",
"raw-loader": "^4.0.2",
"react-test-renderer": "^17.0.2",
"rollup": "^3.20.7",
"shx": "^0.3.4",
"storybook-addon-designs": "^6.3.1",
"storybook-addon-next-router": "^4.0.2",
"typescript": "^4.8.4",
"url-loader": "^4.1.1",
"webpack": "^5.80.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",
"@graphql-codegen/gql-tag-operations-preset",
"cheerio",
"eslint-config-next",
"@storybook/*",
"@shopify/address",
"storybook-addon-designs"
]
}
}