forked from opencollective/opencollective-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
229 lines (229 loc) · 8.28 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
{
"name": "opencollective-api",
"version": "2.0.567",
"description": "Open Collective API",
"author": "@philmod @arnaudbenard @xdamman @asood123",
"main": "server/index.js",
"engines": {
"node": "12.13.0",
"npm": "6.12.0"
},
"dependencies": {
"@babel/core": "7.9.0",
"@babel/node": "7.8.7",
"@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-transform-async-to-generator": "7.8.3",
"@babel/preset-env": "7.9.5",
"@babel/preset-typescript": "7.9.0",
"@octokit/auth-oauth-app": "3.0.2",
"@octokit/rest": "17.2.1",
"@opencollective/taxes": "2.4.0",
"algoliasearch": "3.35.1",
"apollo-errors": "1.9.0",
"apollo-server-express": "2.12.0",
"argparse": "1.0.10",
"aws-sdk": "2.656.0",
"axios": "0.19.2",
"babel-plugin-add-module-exports": "1.0.2",
"babel-plugin-lodash": "3.3.4",
"bcrypt": "4.0.1",
"bluebird": "3.7.2",
"burner-email-providers": "1.0.16",
"cloudflare": "2.7.0",
"cloudflare-ip": "0.0.7",
"config": "3.3.1",
"connect-redis": "4.0.4",
"cookie-parser": "1.4.5",
"cors": "2.8.5",
"dataloader": "2.0.0",
"dataloader-sequelize": "2.1.2",
"debug": "4.1.1",
"deepmerge": "4.2.2",
"dotenv": "8.2.0",
"errorhandler": "1.5.1",
"express": "4.17.1",
"express-graphql": "0.9.0",
"express-limiter": "1.6.1",
"express-server-status": "1.0.3",
"express-session": "1.17.0",
"flat": "5.0.0",
"forest-express-sequelize": "5.7.0",
"fs-extra": "9.0.0",
"graphql": "14.6.0",
"graphql-iso-date": "3.6.1",
"graphql-type-json": "0.3.1",
"handlebars": "4.5.3",
"hashids": "2.2.1",
"he": "1.2.0",
"helloworks-sdk": "1.2.1",
"helmet": "3.22.0",
"html-pdf": "2.2.0",
"ics": "2.19.0",
"intl-messageformat": "8.3.5",
"isomorphic-fetch": "2.2.1",
"json2csv": "5.0.0",
"jsonwebtoken": "8.5.1",
"juice": "6.0.0",
"limax": "2.0.0",
"lodash": "4.17.15",
"lru-cache": "5.1.1",
"memjs": "1.2.2",
"merge-options": "2.0.0",
"moment": "2.24.0",
"moment-timezone": "0.5.28",
"morgan": "1.10.0",
"multer": "1.4.2",
"node-fetch": "2.6.0",
"node-slack": "0.0.7",
"nodemailer": "6.4.6",
"p-queue": "6.3.0",
"p-throttle": "3.1.0",
"passport": "0.4.1",
"passport-github": "1.1.0",
"passport-meetup-oauth2": "0.0.2",
"passport-twitter": "1.0.4",
"paypal-adaptive": "0.4.2",
"pg": "8.0.2",
"pg-connection-string": "2.2.0",
"pg-format": "1.0.4",
"prepend-http": "3.0.1",
"redis": "3.0.2",
"request-promise": "4.2.5",
"sanitize-html": "1.23.0",
"sequelize": "5.21.6",
"sequelize-cli": "5.5.1",
"sequelize-temporal": "1.0.8",
"showdown": "1.9.1",
"stripe": "8.40.0",
"tweetnacl": "1.0.3",
"tweetnacl-util": "0.15.1",
"twitter": "1.7.1",
"uuid": "7.0.3",
"validator": "13.0.0",
"winston": "3.2.1"
},
"devDependencies": {
"@babel/cli": "7.8.4",
"@babel/register": "7.9.0",
"@typescript-eslint/eslint-plugin": "^2.28.0",
"@typescript-eslint/parser": "^2.27.0",
"babel-eslint": "^10.1.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-jest-snapshot": "^2.0.0",
"codecov": "^3.6.5",
"commitizen": "^4.0.4",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-opencollective": "^2.2.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-mocha": "6.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-simple-import-sort": "^5.0.2",
"husky": "^4.2.5",
"lint-staged": "^10.1.3",
"maildev": "^1.1.0",
"mocha": "^7.1.1",
"nock": "^12.0.3",
"nodemon": "^2.0.3",
"npm-run-all": "^4.1.5",
"nyc": "^15.0.1",
"prettier": "2.0.4",
"sinon": "^9.0.2",
"supertest": "^4.0.2",
"supertest-as-promised": "^4.0.2",
"typescript": "^3.8.3"
},
"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:migrate": "./scripts/sequelize.sh db:migrate",
"db:migrate:undo": "./scripts/sequelize.sh db:migrate:undo",
"db:migration:create": "./scripts/sequelize.sh migration:create",
"db:restore": "./scripts/db_restore.sh",
"db:restore:e2e": "npm run db:restore -- -d opencollective_e2e",
"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 --ignore-dirs dist,dbdumps .",
"deploy:production": "./scripts/pre-deploy.sh production && git push production master",
"deploy:staging": "./scripts/pre-deploy.sh staging && git push -f staging master",
"dev": "nodemon server/index.js -x \"babel-node --extensions .js,.ts\" . -e js,hbs,ts",
"export:csv": "babel-node --extensions .js,.ts scripts/monthly_data_exports.js",
"forestadmin-schema:update": "npm run script scripts/forestadmin-schema-update && prettier .forestadmin-schema.json --write",
"git:clean": "./scripts/git_clean.sh",
"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|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=e2e E2E_TEST=1 npm-run-all db:restore:e2e db:migrate build start",
"test": "TZ=UTC 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"
},
"nyc": {
"reporter": [
"lcov"
],
"cache": true
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,md}": [
"prettier --write"
]
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/opencollective/opencollective-api.git"
},
"heroku-run-build-script": true
}