-
Notifications
You must be signed in to change notification settings - Fork 120
/
package.json
191 lines (191 loc) · 7.96 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
{
"name": "cubecobra",
"version": "1.0.0",
"description": "",
"private": true,
"main": "app.js",
"engines": {
"node": ">=20.0.0 <21.0.0"
},
"scripts": {
"build": "yarn run nearley && yarn run sass && tsc -b && yarn run webpack",
"lint": "yarn run prettier-base --check && yarn run eslint --max-warnings 0",
"bash": "bash",
"beautify": "yarn run prettier",
"list-files": "bash -c 'shopt -s nullglob\n echo {__tests__,fixtures,jobs,models,one_shot_scripts,public/js,routes,serverjs,src}/{**/*,*}.{js,jsx,ts,tsx} {app,force_update,server}.js webpack.*.mjs eslint.config.mjs babel.config.mjs'",
"prettier-base": "prettier $(yarn run --silent list-files)",
"prettier": "yarn run prettier-base --write",
"prettier-master": "prettier --write $(git diff master --name-only | grep -E '.m?[jt]sx?$')",
"prettier-head": "prettier --write $(git diff HEAD --name-only | grep -E '.m?[jt]sx?$')",
"eslint": "eslint --quiet $(yarn run --silent list-files)",
"nodemon": "nodemon --max-old-space-size=6000 --ignore src --ignore public --ignore private --ignore temp --ignore dist/pages --ignore __tests__",
"webpack": "webpack --mode development --config webpack.server.mjs",
"webpack-dev-server": "npx webpack serve --config webpack.dev.mjs",
"test": "yarn run test-loud --silent",
"test:watch": "yarn run webpack --watch & yarn run test-loud --watch --verbose false",
"nearley": "sh nearley/helper.sh",
"ci-build": "yarn run nearley && yarn run sass && tsc -b && NODE_OPTIONS=--max_old_space_size=16384 node_modules/.bin/webpack --mode production --config webpack.prod.mjs",
"devstart": "yarn run nearley && yarn run sass --watch & yarn run nodemon & yarn run webpack-dev-server & yarn run webpack --watch",
"setup": "yarn run nearley && yarn run webpack --progress && node --max-old-space-size=8192 force_update.js",
"cards": "node --max-old-space-size=6000 force_update.js",
"download-model": "node --max-old-space-size=4096 jobs/download_model.js",
"start": "yarn install --immutable && yarn run cards && yarn run download-model && node server.js",
"sass": "sass scss:public/css/bootstrap --no-source-map",
"update-draft-history": "node --max-old-space-size=4096 jobs/update_draft_history.js",
"update-cube-history": "node --max-old-space-size=4096 jobs/update_cube_history.js",
"update-metadata-dict": "node --max-old-space-size=4096 jobs/update_metadata_dict.js",
"update-cards": "node --max-old-space-size=4096 jobs/update_cards.js",
"update-all": "yarn run update-draft-history && yarn run update-cube-history && yarn run update-metadata-dict && yarn run update-cards",
"update-hashes": "node --max-old-space-size=4096 jobs/repair_hashes.js",
"upload-exports": "aws s3 sync temp/export s3://cubecobra",
"exports": "node --max-old-space-size=4096 jobs/export_cubes.js && node --max-old-space-size=4096 jobs/export_decks.js && node --max-old-space-size=4096 jobs/export_simple_card_dict.js && yarn run upload-exports",
"rotate-queue": "node --max-old-space-size=4096 jobs/rotate_featured.js",
"sync-podcasts": "node --max-old-space-size=4096 jobs/update_podcasts.js",
"start:localstack": "./scripts/local/start_localstack.sh",
"setup:local": "yarn start:localstack && yarn setup:local:env && yarn setup:local:localstack && yarn setup:local:files && yarn setup:local:db && yarn update-cards",
"setup:local:localstack": "./scripts/init_localstack.sh",
"setup:local:env": "cp .env_EXAMPLE .env",
"setup:local:files": "node one_shot_scripts/create_local_files.js",
"setup:local:db": "node --max-old-space-size=4096 one_shot_scripts/createTables.js",
"start:dev": "yarn start:localstack && yarn devstart"
},
"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",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^8.0.0",
"@primer/octicons-react": "^19.11.0",
"@tensorflow/tfjs-node": "^4.12.0",
"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",
"bootstrap": "^5.1.3",
"chart.js": "^4.2.1",
"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",
"dotenv": "^16.4.5",
"dynamodb-store": "^1.2.0",
"elo-rating": "^1.0.1",
"email-templates": "^12.0.1",
"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",
"html-to-text": "^9.0.5",
"http": "0.0.1-security",
"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",
"mongoose": "^8.5.1",
"mongoose-seed": "^0.6.0",
"nearley": "^2.19.3",
"node-cache": "^5.1.2",
"node-fetch": "^2.7.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-infinite-scroll-component": "^6.1.0",
"react-latex": "^2.0.0",
"react-leaf-carousel": "^3.0.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",
"reactstrap": "^9.2.2",
"redis": "^3.1.2",
"rehype-autolink-headings": "^7.1.0",
"rehype-katex": "^7.0.0",
"rehype-slug": "^6.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",
"sass": "^1.44.0",
"seedrandom": "^3.0.5",
"serialize-javascript": "^6.0.2",
"sharp": "^0.33.4",
"shuffle-seed": "^1.1.6",
"socket.io": "^4.7.2",
"socket.io-client": "^4.7.2",
"stream": "^0.0.3",
"tmp": "^0.2.3",
"turndown": "^7.1.1",
"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",
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.8.0",
"@react-mock/fetch": "^0.3.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.0",
"@types/core-js": "^2.5.8",
"@types/eslint__js": "^8.42.3",
"@types/nearley": "^2.11.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/react-timeago": "^4.1.7",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"babel-loader": "^9.1.3",
"css-loader": "^7.1.2",
"eslint": "^9.11.1",
"globals": "^15.9.0",
"nodemon": "^3.1.4",
"raw-loader": "^4.0.2",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"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": "yarn@4.4.0"
}