forked from opencollective/opencollective-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
278 lines (278 loc) · 10.8 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
{
"private": true,
"name": "opencollective-api",
"description": "Open Collective API",
"license": "MIT",
"contributors": [
"Arnaud Bénard (https://github.com/arnaudbenard)",
"Aseem Sood (https://github.com/asood123)",
"Benjamin Piouffle (https://github.com/Betree)",
"François Hodierne (https://github.com/znarf)",
"Kate Beard (https://github.com/sbinlondon)",
"Leo Kewitz (https://github.com/kewitz)",
"Lincoln de Sousa (https://github.com/clarete)",
"Nick Hehr (https://github.com/HipsterBrown)",
"Oluwaseun Omoyajowo (https://github.com/flickz)",
"Philippe Modard (https://github.com/Philmod)",
"Pia Mancini (https://github.com/piamancini)",
"Sébastien Dubois (https://github.com/sedubois)",
"Xavier Damman (https://github.com/xdamman)"
],
"repository": {
"type": "git",
"url": "https://github.com/opencollective/opencollective-api.git"
},
"main": "server/index.js",
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@babel/core": "7.20.12",
"@babel/node": "7.20.7",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-async-to-generator": "7.20.7",
"@babel/preset-env": "7.20.2",
"@babel/preset-typescript": "7.18.6",
"@hyperwatch/hyperwatch": "3.9.4",
"@node-oauth/oauth2-server": "4.3.0",
"@octokit/auth-oauth-app": "5.0.5",
"@octokit/rest": "19.0.7",
"@opencollective/taxes": "4.0.1",
"@paypal/payouts-sdk": "^1.1.0",
"@sentry/node": "7.34.0",
"@sentry/tracing": "7.34.0",
"@sentry/types": "7.34.0",
"apollo-server-errors": "3.3.1",
"apollo-server-express": "3.9.0",
"argparse": "2.0.1",
"aws-sdk": "2.1305.0",
"axios": "0.27.2",
"babel-plugin-add-module-exports": "1.0.4",
"babel-plugin-lodash": "3.3.4",
"bayes": "1.0.0",
"bcrypt": "5.1.0",
"bluebird": "3.7.2",
"blurhash": "2.0.4",
"burner-email-providers": "github:opencollective/burner-email-providers",
"cloudflare": "2.9.1",
"cloudflare-ip": "0.0.7",
"commander": "^10.0.0",
"config": "3.3.9",
"connect-redis": "6.1.3",
"cookie": "0.5.0",
"cookie-parser": "1.4.6",
"cors": "2.8.5",
"crypto-js": "4.1.1",
"crypto-random-string": "3.3.1",
"dataloader": "2.1.0",
"dataloader-sequelize": "2.3.3",
"debug": "4.3.4",
"deepmerge": "4.3.0",
"dotenv": "16.0.3",
"errorhandler": "1.5.1",
"express": "4.18.2",
"express-basic-auth": "1.2.1",
"express-limiter": "1.6.1",
"express-session": "1.17.3",
"express-ws": "5.0.2",
"fs-extra": "11.1.0",
"get-urls": "10.0.1",
"graphql": "16.6.0",
"graphql-scalars": "1.20.1",
"graphql-type-json": "0.3.2",
"handlebars": "4.7.7",
"hashids": "2.2.10",
"hcaptcha": "0.1.1",
"helloworks-sdk": "1.3.0",
"helmet": "6.0.1",
"html-pdf": "3.0.1",
"html-to-text": "9.0.3",
"ics": "2.41.0",
"intl-messageformat": "10.3.0",
"json2csv": "5.0.7",
"jsonwebtoken": "9.0.0",
"juice": "8.1.0",
"limax": "3.0.0",
"lodash": "4.17.21",
"lru-cache": "7.14.1",
"memjs": "1.3.0",
"moment": "2.29.4",
"moment-timezone": "0.5.40",
"multer": "1.4.4",
"node-fetch": "2.6.9",
"node-slack": "0.0.7",
"nodemailer": "6.9.1",
"p-queue": "6.6.2",
"p-throttle": "4.1.1",
"passport": "0.6.0",
"passport-github": "1.1.0",
"passport-twitter": "1.0.4",
"paypal-adaptive": "0.4.2",
"pg": "8.9.0",
"pg-connection-string": "2.5.0",
"pg-format": "1.0.4",
"prepend-http": "3.0.1",
"redis": "3.1.2",
"sanitize-html": "2.9.0",
"sequelize": "6.28.0",
"sequelize-cli": "6.6.0",
"sequelize-temporal": "1.0.8",
"sharp": "0.31.3",
"showdown": "2.1.0",
"spdx-license-list": "^6.6.0",
"speakeasy": "2.0.0",
"stripe": "11.8.0",
"throng": "5.0.0",
"tweetnacl": "1.0.3",
"tweetnacl-util": "0.15.1",
"twitter": "1.7.1",
"uuid": "9.0.0",
"validator": "13.7.0",
"winston": "3.8.2"
},
"devDependencies": {
"@babel/cli": "^7.16.0",
"@babel/eslint-parser": "^7.16.0",
"@babel/plugin-transform-typescript": "^7.17.12",
"@babel/register": "^7.16.0",
"@opentelemetry/auto-instrumentations-node": "^0.36.0",
"@opentelemetry/exporter-trace-otlp-proto": "^0.35.0",
"@opentelemetry/sdk-trace-node": "^1.8.0",
"@types/lodash": "^4.14.171",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"@types/nodemailer": "^6.4.4",
"@types/validator": "^13.7.1",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"apollo-opentracing": "3.0.42",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-jest-snapshot": "^2.0.0",
"chai-sorted": "^0.2.0",
"chai-subset": "^1.6.0",
"codecov": "^3.8.2",
"commitizen": "^4.2.4",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.1.0",
"eslint-config-opencollective": "^3.0.3",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-mocha": "10.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"fake-tag": "^3.0.0",
"geoip-lite": "^1.4.2",
"husky": "^4.3.8",
"lint-staged": "^10.5.4",
"maildev": "2.0.5",
"markdown-table": "^2.0.0",
"mocha": "^10.0.0",
"nock": "^13.1.0",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"opentelemetry-instrumentation-sequelize": "^0.34.0",
"prettier": "2.8.3",
"sinon": "^15.0.0",
"sinon-chai": "^3.7.0",
"supertest": "^6.1.3",
"typescript": "^4.4.4"
},
"scripts": {
"build": "npm run build:clean && npm run build:updates && npm run build:server",
"build:clean": "rm -rf dist && mkdir dist",
"build:server": "babel server --extensions .js,.ts -d ./dist",
"build:updates": "npm --prefix node_modules/cloudflare-ip run update-list",
"clean": "npm run build:clean && npm run test:clean",
"commit": "git-cz",
"compile:email": "babel-node --extensions .js,.ts scripts/compile-email.js",
"compile:email:watch": "./scripts/watch_email_template.sh",
"cron:10mn": "./scripts/cron.sh 10mn",
"cron:daily": "./scripts/cron.sh daily",
"cron:hourly": "./scripts/cron.sh hourly",
"cron:monthly": "./scripts/cron.sh monthly",
"cron:weekly": "./scripts/cron.sh weekly",
"cron:yearly": "./scripts/cron.sh yearly",
"db:clean": "babel-node --extensions .js,.ts ./scripts/sanitize-db.js",
"db:copy:prod": "./scripts/db_copy_to_localhost.sh prod && PG_DATABASE=opencollective_prod_snapshot npm run db:sanitize",
"db:copy:prod:staging": "./scripts/db_copy_prod_to_staging.sh opencollective-staging-api && heroku run npm run db:sanitize --app opencollective-staging-api",
"db:copy:prod:staging-dev": "./scripts/db_copy_prod_to_staging.sh $DEV && heroku run npm run db:sanitize --app $DEV",
"db:copy:staging": "./scripts/db_copy_to_localhost.sh staging",
"db:dump:dev": "./scripts/db_migrate_opencollective_dvl.sh",
"db:migrate": "./scripts/sequelize.sh db:migrate",
"db:migrate:undo": "./scripts/sequelize.sh db:migrate:undo",
"db:migration:create": "./scripts/sequelize.sh migration:create",
"db:migration:archive": "babel-node --extensions .js,.ts scripts/db_migrations_archive.ts",
"db:restore": "./scripts/db_restore.sh",
"db:restore:e2e": "npm run db:restore -- -d opencollective_e2e",
"db:restore:test": "NODE_ENV=test npm run db:restore -- -d opencollective_test && NODE_ENV=test npm run db:migrate",
"db:sanitize": "babel-node --extensions .js,.ts scripts/sanitize-db",
"db:seed": "./scripts/sequelize.sh db:seed",
"db:setup": "babel-node --extensions .js,.ts ./scripts/db_setup.js",
"depcheck": "npx depcheck --specials babel,bin,commitizen,eslint,husky,lint-staged,mocha --ignores cookie --ignore-dirs dist,dbdumps .",
"deploy:production": "./scripts/pre-deploy.sh production && git push production main",
"deploy:staging": "./scripts/pre-deploy.sh staging && git push -f staging main",
"dev": "nodemon server/index.js -x \"babel-node --extensions .js,.ts\" . -e js,hbs,ts",
"docs:generate:oauth": "babel-node --extensions .js,.ts ./scripts/docs/oauth.ts",
"export:csv": "babel-node --extensions .js,.ts cron/monthly/data-export.js",
"forestadmin-schema:update": "npm run script scripts/forestadmin-schema-update && prettier .forestadmin-schema.json --write",
"git:clean": "./scripts/git_clean.sh",
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:updateV1": "npm run script scripts/update-gql-schemas.ts http://localhost:3060/graphql/v1 server/graphql/schemaV1.graphql && prettier server/graphql/schemaV1.graphql --write",
"graphql:updateV2": "npm run script scripts/update-gql-schemas.ts http://localhost:3060/graphql/v2 server/graphql/schemaV2.graphql && prettier server/graphql/schemaV2.graphql --write",
"hint": "npm run lint:quiet",
"lint": "eslint . --ext='js,ts'",
"lint:check": "npm run lint -- --quiet",
"lint:fix": "npm run lint -- --fix",
"maildev": "maildev",
"postdb:migrate:dev": "npm run db:clean",
"postinstall": "./scripts/postinstall.sh",
"prettier": "prettier \"**/*.@(js|ts|json|md)\" --ignore-path .eslintignore",
"prettier:check": "npm run prettier -- --check",
"prettier:write": "npm run prettier -- --write",
"refund-transactions": "babel-node --extensions .js,.ts ./scripts/add_refund_transactions_from_collective.js",
"report": "node scripts/send_email_report_cli.js",
"script": "babel-node --extensions .js,.ts $1",
"sequelize": "babel-node --extensions .js,.ts -- ./node_modules/.bin/sequelize --config config/sequelize-cli.js",
"start": "node ./dist/index.js",
"start:e2e": "TZ=UTC NODE_ENV=production OC_ENV=e2e E2E_TEST=1 npm-run-all db:restore:e2e db:migrate build start:e2e:server",
"start:e2e:server": "node ./dist/e2e.js",
"test": "TZ=UTC nyc mocha",
"test:update": "TZ=UTC CHAI_JEST_SNAPSHOT_UPDATE_ALL=true nyc mocha",
"test:clean": "rm -rf .nyc_output coverage",
"test:coverage": "codecov",
"test:graphql": "npm run test test/server/graphql",
"test:lib": "npm run test test/server/lib",
"test:models": "npm run test test/server/models",
"test:payment-providers": "npm run test test/server/paymentProviders",
"test:routes": "npm run test test/server/routes",
"test:scripts": "npm run test test/scripts",
"test:sql": "npm run test test/sql",
"type:check": "tsc"
},
"engines": {
"node": "18.x",
"npm": "8.x"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,md}": [
"prettier --write"
]
},
"nyc": {
"reporter": [
"lcov"
],
"cache": true
}
}