forked from withspectrum/spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
298 lines (298 loc) · 12.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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
{
"name": "Spectrum",
"version": "3.1.15",
"license": "BSD-3-Clause",
"devDependencies": {
"@babel/preset-flow": "^7.0.0",
"babel-cli": "^6.24.1",
"babel-eslint": "^8.2.6",
"babel-jest": "^22.4.4",
"babel-plugin-import-inspector": "^2.0.0",
"babel-plugin-inline-import-graphql-ast": "^2.0.4",
"babel-plugin-styled-components": "^1.8.0",
"babel-plugin-syntax-async-generators": "^6.13.0",
"babel-plugin-syntax-dynamic-import": "^6.18.0",
"babel-plugin-transform-async-generator-functions": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-env": "^1.7.0",
"backpack-core": "^0.4.1",
"bundle-buddy-webpack-plugin": "^0.3.0",
"cheerio": "^1.0.0-rc.2",
"circular-dependency-plugin": "4.x",
"cpy-cli": "^2.0.0",
"cross-env": "^5.2.0",
"cypress-plugin-retries": "^1.2.0",
"eslint": "^4.1.1",
"eslint-config-react-app": "^2.1.0",
"eslint-plugin-flowtype": "^2.50.3",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jest": "^21.25.1",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-react": "^7.12.4",
"flow-bin": "0.66",
"forever": "^0.15.3",
"is-html": "^1.1.0",
"lint-staged": "^3.3.0",
"micromatch": "^3.0.4",
"prettier": "^1.14.3",
"raw-loader": "^0.5.1",
"react-app-rewire-hot-loader": "^1.0.3",
"react-hot-loader": "^4.12.13",
"react-scripts": "^1.1.5",
"rimraf": "^2.6.1",
"sw-precache-webpack-plugin": "^0.11.4",
"uuid": "^3.0.1",
"wait-on": "^2.1.0",
"webpack-bundle-analyzer": "^3.3.2",
"write-file-webpack-plugin": "^4.5.1"
},
"dependencies": {
"@cypress/browserify-preprocessor": "^1.1.2",
"@sendgrid/mail": "^6.3.1",
"@tippy.js/react": "^2.1.1",
"algoliasearch": "^3.30.0",
"apollo-cache-inmemory": "^1.6.3",
"apollo-client": "^2.6.4",
"apollo-link": "^1.2.13",
"apollo-link-http": "^1.5.16",
"apollo-link-retry": "^2.2.15",
"apollo-link-schema": "^1.2.4",
"apollo-link-ws": "^1.0.19",
"apollo-server-cache-redis": "^1.1.4",
"apollo-server-express": "^2.9.12",
"apollo-server-plugin-response-cache": "^0.3.8",
"apollo-upload-client": "^11.0.0",
"apollo-upload-server": "^7.1.0",
"apollo-utilities": "^1.3.2",
"aws-sdk": "2.336.0",
"axios": "^0.19.0",
"b2a": "^1.0.10",
"bad-words": "^1.6.4",
"body-parser": "^1.18.3",
"bull": "^3.5.2",
"casual": "^1.5.19",
"common-tags": "^1.8.0",
"cookie-parser": "^1.4.3",
"cookie-session": "^2.0.0-beta.3",
"cors": "^2.8.3",
"cryptr": "^3.0.0",
"css.escape": "^1.5.1",
"cypress": "^3.6.1",
"datadog-metrics": "^0.8.1",
"dataloader": "^1.4.0",
"debounce": "^1.2.0",
"debug": "^4.1.0",
"decode-uri-component": "^0.2.0",
"draft-js": "npm:draft-js-fork-mxstbr",
"draft-js-code-editor-plugin": "0.2.1",
"draft-js-drag-n-drop-plugin": "^2.0.3",
"draft-js-embed-plugin": "^1.2.0",
"draft-js-export-markdown": "^1.4.0",
"draft-js-focus-plugin": "^2.2.0",
"draft-js-image-plugin": "^2.0.6",
"draft-js-import-markdown": "^1.3.1",
"draft-js-linkify-plugin": "^2.0.2",
"draft-js-markdown-plugin": "^3.0.5",
"draft-js-plugins-editor": "^2.1.1",
"draft-js-prism-plugin": "0.1.3",
"draftjs-to-markdown": "^0.5.1",
"emoji-regex": "^6.1.1",
"escape-html": "^1.0.3",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-standard": "^3.1.0",
"express": "^4.16.4",
"express-enforces-ssl": "^1.1.0",
"express-hot-shots": "^1.0.2",
"express-session": "^1.15.2",
"faker": "^4.1.0",
"find-with-regex": "^1.0.2",
"flow-typed": "^2.6.2",
"graphql": "0.13.x",
"graphql-cost-analysis": "^1.0.2",
"graphql-date": "^1.0.3",
"graphql-depth-limit": "^1.1.0",
"graphql-log": "0.1.3",
"graphql-rate-limit": "^1.2.4",
"graphql-tag": "^2.10.0",
"graphql-tools": "^4.0.3",
"helmet": "^3.14.0",
"highlight.js": "^9.13.1",
"history": "^4.6.1",
"hoist-non-react-statics": "^2.3.1",
"host-validation": "^1.1.0",
"hot-shots": "^5.9.2",
"hpp": "^0.2.2",
"hsts": "^2.1.0",
"http-proxy-middleware": "^1.0.4",
"idx": "^2.4.0",
"imgix-core-js": "^1.0.6",
"ioredis": "3.2.2",
"is-electron": "^2.1.0",
"isomorphic-fetch": "^2.2.1",
"jest": "22.4.3",
"json-stringify-pretty-compact": "^1.2.0",
"jsonwebtoken": "^8.3.0",
"keygrip": "^1.0.3",
"linkify-it": "^2.2.0",
"lodash": "^4.17.15",
"lodash.intersection": "^4.4.0",
"moment": "^2.22.2",
"ms": "^2.1.1",
"node-env-file": "^0.1.8",
"now-env": "^3.1.0",
"offline-plugin": "^5.0.5",
"passport": "^0.4.0",
"passport-facebook": "^2.1.1",
"passport-github2": "^0.1.10",
"passport-google-oauth2": "^0.1.6",
"passport-twitter": "^1.0.4",
"pre-commit": "^1.2.2",
"prism-react-renderer": "^0.1.7",
"prismjs": "^1.15.0",
"query-string": "5.1.1",
"raf": "^3.4.0",
"ratelimiter": "^3.2.0",
"raven": "^2.6.4",
"react": "^16.8.4",
"react-apollo": "^2.5.1",
"react-app-rewire-styled-components": "^3.0.0",
"react-app-rewired": "1.6.2",
"react-async-hook": "^1.0.0",
"react-clipboard.js": "^2.0.1",
"react-dom": "npm:@hot-loader/react-dom",
"react-dropzone": "^8.0.3",
"react-flip-move": "^3.0.2",
"react-helmet-async": "^0.2.0",
"react-image": "^1.5.1",
"react-infinite-scroller": "^1.2.4",
"react-infinite-scroller-fork-mxstbr": "^1.2.7",
"react-infinite-scroller-with-scroll-element": "2.0.2",
"react-loadable": "^5.5.0",
"react-mentions": "^2.4.1",
"react-modal": "^3.7.1",
"react-popper": "^1.3.3",
"react-redux": "^5.0.2",
"react-router": "4.x",
"react-router-dom": "4.x",
"react-textarea-autosize": "^6.1.0",
"react-transition-group": "^2.5.0",
"react-trend": "^1.2.4",
"react-visibility-sensor": "^5.0.1",
"recompose": "^0.27.1",
"redis-tag-cache": "^1.2.1",
"redraft": "0.10.2",
"redux": "^3.6.0",
"redux-thunk": "^2.3.0",
"request": "^2.88.0",
"request-ip": "^2.1.3",
"rethinkdb-changefeed-reconnect": "^0.3.2",
"rethinkdb-inspector": "^0.3.3",
"rethinkdb-migrate": "^1.4.0",
"rethinkhaberdashery": "^2.3.32",
"sanitize-filename": "^1.6.3",
"serialize-javascript": "^1.5.0",
"session-rethinkdb": "^2.0.0",
"sha1": "^1.1.1",
"slate": "^0.20.1",
"slate-markdown": "0.1.1",
"slugg": "^1.1.0",
"snarkdown": "^1.2.2",
"stopword": "^0.1.13",
"string-replace-to-array": "^1.0.3",
"string-similarity": "^2.0.0",
"striptags": "2.x",
"styled-components": "^4.1.3",
"subscriptions-transport-ws": "^0.9.15",
"textversionjs": "^1.1.3",
"then-queue": "^1.3.0",
"toobusy-js": "^0.5.1",
"validator": "^9.0.0",
"web-push": "^3.3.3"
},
"resolutions": {
"immutable": "3.7.4",
"draft-js": "npm:draft-js-fork-mxstbr",
"jest-environment-node": "22.4.3",
"jest": "22.4.3",
"fbjs": "0.8.16",
"event-stream": "3.3.4"
},
"scripts": {
"start": "NODE_ENV=production node main.js",
"start:athena": "cross-env NODE_ENV=production node build-athena/main.js",
"start:hermes": "cross-env NODE_ENV=production node build-hermes/main.js",
"start:chronos": "cross-env NODE_ENV=production node build-chronos/main.js",
"start:mercury": "cross-env NODE_ENV=production node build-mercury/main.js",
"start:vulcan": "cross-env NODE_ENV=production node build-vulcan/main.js",
"start:api": "cross-env NODE_ENV=production node build-api/main.js",
"dev:web": "cross-env NODE_PATH=./ react-app-rewired start",
"dev:api": "cross-env FILE_STORAGE=local cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,api*,shared:rethinkdb:db-query-cache,-api:resolvers,shared:middlewares:ratelimiter cross-env DIR=api backpack",
"dev:api:s3": "cross-env FILE_STORAGE=s3 cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,api*,shared:rethinkdb:db-query-cache,-api:resolvers cross-env DIR=api backpack",
"dev:athena": "cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,athena*,-athena:resolvers cross-env DIR=athena backpack",
"dev:hermes": "cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,hermes*,-hermes:resolvers cross-env DIR=hermes backpack",
"dev:chronos": "cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,chronos*,-chronos:resolvers cross-env DIR=chronos backpack",
"dev:mercury": "cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,mercury*,-mercury:resolvers cross-env DIR=mercury backpack",
"dev:vulcan": "cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,vulcan*,-vulcan:resolvers cross-env DIR=vulcan backpack",
"dev:hyperion": "cross-env NODE_PATH=./ cross-env NODE_ENV=development cross-env DEBUG=build*,hyperion*,-hyperion:resolvers cross-env DIR=hyperion backpack",
"dev:desktop": "(cd desktop && yarn run dev)",
"prebuild:api": "rimraf build-api",
"build:api": "cross-env NODE_PATH=./ cross-env DIR=api backpack build",
"postbuild:api": "cp api/package.json build-api/package.json && cp now.json build-api/now.json && cpy cacert build-api",
"prebuild:athena": "rimraf build-athena",
"build:athena": "cross-env NODE_PATH=./ cross-env DIR=athena backpack build",
"postbuild:athena": "cp athena/package.json build-athena/package.json && cp now.json build-athena/now.json && cpy cacert build-athena",
"prebuild:hermes": "rimraf build-hermes",
"build:hermes": "cross-env NODE_PATH=./ cross-env DIR=hermes backpack build",
"postbuild:hermes": "cp hermes/package.json build-hermes/package.json && cp now.json build-hermes/now.json && cpy cacert build-hermes",
"prebuild:chronos": "rimraf build-chronos",
"build:chronos": "cross-env NODE_PATH=./ cross-env DIR=chronos backpack build",
"postbuild:chronos": "cp chronos/package.json build-chronos/package.json && cp now.json build-chronos/now.json && cpy cacert build-chronos",
"prebuild:mercury": "rimraf build-mercury",
"build:mercury": "cross-env NODE_PATH=./ cross-env DIR=mercury backpack build",
"postbuild:mercury": "cp mercury/package.json build-mercury/package.json && cp now.json build-mercury/now.json && cpy cacert build-mercury",
"prebuild:vulcan": "rimraf build-vulcan",
"build:vulcan": "cross-env NODE_PATH=./ cross-env DIR=vulcan backpack build",
"postbuild:vulcan": "cp vulcan/package.json build-vulcan/package.json && cp now.json build-vulcan/now.json && cpy cacert build-vulcan",
"prebuild:hyperion": "rimraf build && yarn run build:web && rimraf build-hyperion",
"build:hyperion": "cross-env NODE_PATH=./ cross-env DIR=hyperion backpack build",
"postbuild:hyperion": "cp -r build build-hyperion && cp now.json build-hyperion && cp yarn.lock build-hyperion && cp package.json build-hyperion && cp cacert build-hyperion",
"build:web": "cross-env NODE_PATH=./ react-app-rewired build",
"build:desktop": "(cd desktop && yarn run package:all)",
"test:desktop": "(cd desktop && yarn run package:test)",
"release:desktop": "(cd desktop && yarn run release)",
"jest": "cross-env NODE_PATH=./ jest",
"test": "npm run jest -- --runInBand --watch",
"test:ci": "npm run jest -- --forceExit --outputFile test-results.json --json --maxWorkers=2",
"test:e2e": "CYPRESS_RETRIES=2 cypress run",
"prestart:api:test": "node -e \"require('./shared/testing/setup.js')().then(() => process.exit())\"",
"start:api:test": "TEST_DB=true FORCE_DEV=true DEBUG=api*,shared* forever build-api/main.js",
"cypress:open": "cypress open",
"cypress:install": "cypress install",
"lint": "eslint .",
"flow": "flow",
"db:migrate": "npm run rethinkdb:migrate -- up",
"db:drop": "npm run rethinkdb:migrate -- down",
"db:seed": "cross-env NODE_PATH=./ node api/migrations/seed/index.js",
"db:reset": "yarn run db:drop && yarn run db:migrate && yarn run db:seed",
"rethinkdb:migrate": "rethinkdb-migrate -f ./api/migrations/config.js",
"eject": "react-scripts eject",
"lint:staged": "lint-staged",
"webpack-defaults": "webpack-defaults",
"process:emails:test": "(cd email-template-scripts && python3 inline-html-emails.py && node sendgrid-sync.js)",
"process:emails:prod": "(cd email-template-scripts && python3 inline-html-emails.py && node sendgrid-sync.js prod)",
"process:emails:send": "(cd email-template-scripts && node send-test-emails.js brian@spectrum.chat)",
"deploy": "node scripts/deploy",
"heroku": "node scripts/heroku-deploy"
},
"lint-staged": {
"*.js": [
"prettier --write",
"eslint --fix",
"git add"
]
},
"pre-commit": "lint:staged"
}