-
Notifications
You must be signed in to change notification settings - Fork 126
/
Copy pathpackage.json
249 lines (249 loc) · 9.91 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
{
"name": "cubecobra",
"version": "1.1.4",
"description": "",
"private": true,
"main": "app.js",
"engines": {
"node": ">=20.0.0 <21.0.0"
},
"scripts": {
"build-client": "npm run nearley && tsc -b && npm run webpack && npx tailwindcss -i ./src/client/css/stylesheet.css -o ./public/css/stylesheet.css",
"build-server": "tsc -p tsconfig.json",
"build": "npm run build-client && npm run build-server",
"lint": "npx prettier --check $(npm run --silent list-files); npx eslint --max-warnings 0 $(npm run --silent list-files)",
"list-files": "bash -c 'shopt -s nullglob\n echo {jobs,scripts,src}/{**/*,*}.{js,jsx,ts,tsx} force_update.js webpack.*.mjs eslint.config.mjs babel.config.mjs'",
"bash": "bash",
"nodemon": "nodemon --exec ts-node --ignore src/client --ignore public --ignore private --ignore temp --ignore dist/pages --ignore __tests__ src/app.js",
"webpack": "NODE_OPTIONS=--max_old_space-size=18192 webpack --mode production --config webpack.prod.mjs",
"webpack-dev-server": "NODE_OPTIONS=--max_old_space-size=18192 npx webpack serve --config webpack.dev.mjs",
"nearley": "sh nearley/helper.sh",
"ci-build": "npm run nearley && tsc -b && NODE_OPTIONS=--max_old_space_size=16384 node_modules/.bin/webpack --mode production --config webpack.prod.mjs",
"devstart": "npm run nearley --watch & npm run nodemon & npm run webpack-dev-server & npm run tailwind:watch & npx tailwindcss -i ./src/client/css/stylesheet.css -o ./public/css/stylesheet.css --watch=always",
"setup": "npm run nearley && npm run webpack --progress && node --max-old-space-size=8192 force_update.js",
"cards": "node --max-old-space-size=8192 force_update.js",
"download-model": "node --max-old-space-size=8192 src/jobs/download_model.js",
"start": "node server.js",
"setup-prod": "npm install --immutable && npm run cards && npm run download-model",
"update-draft-history": "NODE_OPTIONS=--max_old_space-size=18192 ts-node src/jobs/update_draft_history.ts",
"update-cube-history": "NODE_OPTIONS=--max_old_space-size=18192 ts-node src/jobs/update_cube_history.ts",
"update-metadata-dict": "NODE_OPTIONS=--max_old_space-size=18192 ts-node src/jobs/update_metadata_dict.ts",
"update-cards": "NODE_OPTIONS=--max_old_space-size=18192 ts-node src/jobs/update_cards.ts",
"update-all": "npm run update-draft-history && npm run update-cube-history && npm run update-metadata-dict && npm run update-cards",
"update-hashes": "node --max-old-space-size=8192 src/jobs/repair_hashes.js",
"upload-exports": "aws s3 sync temp/export s3://cubecobra",
"exports": "NODE_OPTIONS=--max-old-space-size=8192 ts-node src/jobs/export_cubes.js && NODE_OPTIONS=--max-old-space-size=8192 ts-node src/jobs/export_decks.ts && NODE_OPTIONS=--max-old-space-size=8192 ts-node src/jobs/export_simple_card_dict.js && npm run upload-exports",
"rotate-queue": "node --max-old-space-size=8192 src/jobs/rotate_featured.js",
"sync-podcasts": "node --max-old-space-size=8192 src/jobs/update_podcasts.js",
"start:localstack": "./scripts/local/start_localstack.sh",
"setup:local": "npm run start:localstack && npm run setup:local:env && npm run setup:local:localstack && npm run setup:local:files && npm run setup:local:db && npm run update-cards",
"setup:local:localstack": "./scripts/local/init_localstack.sh",
"setup:local:env": "cp .env_EXAMPLE .env",
"setup:local:files": "node scripts/create_local_files.js",
"setup:local:db": "node --max-old-space-size=8192 scripts/createTables.js",
"start:dev": "npm run start:localstack && npm run devstart",
"publish": "npm run build && node ./scripts/publish.js",
"postinstall": "node ./scripts/setup-aliases.js",
"test": "npx jest --coverage=false",
"test:watch": "npx jest --watch --coverage=false",
"test:coverage": "npx jest --coverage",
"test:ci": "npx jest --coverage --coverageReporters json-summary",
"prepare": "husky"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
]
},
"_moduleAliases": {
"analytics": "build/client/analytics",
"components": "build/client/components",
"contexts": "build/client/contexts",
"datatypes": "build/datatypes",
"drafting": "build/client/drafting",
"filtering": "build/client/filtering",
"generated": "build/client/generated",
"hooks": "build/client/hooks",
"layouts": "build/client/layouts",
"markdown": "build/client/markdown",
"pages": "build/client/pages",
"res": "build/client/res",
"utils": "build/client/utils"
},
"author": "Gwen Dekker",
"license": "ISC",
"sideEffects": false,
"browserslist": "> 0.5%, Firefox ESR, not dead, not IE > 0, not IE_Mob > 0, not safari < 7, not kaios > 0",
"dependencies": {
"@aws-sdk/client-cloudwatch-logs": "^3.433.0",
"@babel/plugin-transform-runtime": "^7.25.9",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@headlessui/react": "^2.1.8",
"@primer/octicons-react": "^19.11.0",
"@scryfall/api-types": "^1.0.0-alpha.4",
"@tailwindcss/line-clamp": "^0.4.4",
"@tensorflow/tfjs": "^4.22.0",
"@tensorflow/tfjs-node": "^4.22.0",
"archiver": "^7.0.1",
"assert": "^2.0.0",
"aws-sdk": "^2.1478.0",
"bad-words": "^3.0.4",
"bcryptjs": "^2.4.3",
"big-json": "^3.2.0",
"body-parser": "^1.20.2",
"chart.js": "^4.2.1",
"chartjs-adapter-date-fns": "^3.0.0",
"classnames": "^2.2.6",
"clone": "^2.1.2",
"compression": "^1.7.4",
"connect-flash": "^0.1.1",
"core-js": "^3.33.1",
"csurf": "^1.11.0",
"date-fns": "^4.1.0",
"dotenv": "^16.4.5",
"dynamodb-store": "^1.2.0",
"elo-rating": "^1.0.1",
"email-templates": "^12.0.1",
"emoji-regex": "^10.4.0",
"event-stream": "^4.0.1",
"events": "^3.3.0",
"express": "^4.18.2",
"express-fileupload": "^1.1.9",
"express-messages": "^1.0.1",
"express-rate-limit": "^7.4.0",
"express-session": "^1.17.3",
"express-validator": "^7.1.0",
"forever-monitor": "^1.7.2",
"github-slugger": "^2.0.0",
"html-to-text": "^9.0.5",
"http": "0.0.1-security",
"joi": "^17.13.3",
"JSONStream": "^1.3.5",
"lodash": "^4.17.21",
"micromark": "^4.0.0",
"micromark-factory-space": "^2.0.0",
"micromark-util-character": "^2.0.1",
"micromark-util-chunked": "^2.0.0",
"micromark-util-symbol": "^2.0.0",
"module-alias": "^2.2.3",
"mongoose": "^8.5.1",
"mongoose-seed": "^0.6.0",
"nearley": "^2.19.3",
"node-cache": "^5.1.2",
"node-fetch": "^2.7.0",
"node-gyp": "^11.0.0",
"node-schedule": "^2.1.1",
"nodemailer": "^6.4.16",
"on-finished": "^2.3.0",
"papaparse": "^5.2.0",
"passport": "^0.7.0",
"passport-local": "^1.0.0",
"patreon": "^0.4.1",
"performance-now": "^2.1.0",
"prettier": "^3.0.3",
"prop-types": "^15.7.2",
"pug": "^3.0.1",
"react": "^18.3.1",
"react-audio-player": "^0.17.0",
"react-chartjs-2": "^5.2.0",
"react-csv": "^2.0.3",
"react-dom": "^18.3.1",
"react-google-recaptcha": "^3.1.0",
"react-markdown": "^9.0.1",
"react-player": "^2.6.1",
"react-qr-code": "^2.0.15",
"react-syntax-highlighter": "^15.3.0",
"react-timeago": "^7.1.0",
"redis": "^3.1.2",
"rehype-katex": "^7.0.0",
"remark-breaks": "^4.0.0",
"remark-gfm": "^4.0.0",
"remark-math": "^6.0.0",
"remark-parse": "^11.0.0",
"rss": "^1.2.2",
"rss-parser": "^3.13.0",
"sanitize-html": "^2.11.0",
"seedrandom": "^3.0.5",
"serialize-javascript": "^6.0.2",
"sharp": "^0.33.5",
"shuffle-seed": "^1.1.6",
"stream": "^0.0.3",
"stream-chain": "^3.3.2",
"stream-json": "^1.9.1",
"tmp": "^0.2.3",
"tsconfig-paths": "^4.2.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"util": "^0.12.4",
"uuid": "^10.0.0",
"webpack": "^5.93.0"
},
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
"@babel/plugin-transform-optional-chaining": "^7.24.8",
"@babel/preset-env": "^7.25.3",
"@babel/preset-react": "^7.24.7",
"@babel/preset-typescript": "^7.26.0",
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.8.0",
"@react-mock/fetch": "^0.3.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.0",
"@types/aws-sdk2-types": "^0.0.5",
"@types/big-json": "^3.2.5",
"@types/clone": "^2.1.4",
"@types/core-js": "^2.5.8",
"@types/eslint__js": "^8.42.3",
"@types/event-stream": "^4.0.5",
"@types/jest": "^29.5.14",
"@types/nearley": "^2.11.5",
"@types/react": "^18.3.3",
"@types/react-csv": "^1.1.10",
"@types/react-dom": "^18.3.0",
"@types/react-google-recaptcha": "^2.1.9",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/react-timeago": "^4.1.7",
"@types/shuffle-seed": "^1.1.3",
"@types/supertest": "^6.0.2",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"autoprefixer": "^10.4.20",
"babel-loader": "^9.1.3",
"css-loader": "^7.1.2",
"eslint": "^9.11.1",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"globals": "^15.9.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.4.0",
"nodemon": "^3.1.4",
"postcss": "^8.4.47",
"raw-loader": "^4.0.2",
"style-loader": "^4.0.0",
"supertest": "^7.0.0",
"tailwindcss": "^3.4.13",
"ts-jest": "^29.2.5",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-node-externals": "^3.0.0"
},
"packageManager": "[email protected]"
}