-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
package.json
119 lines (119 loc) · 6.09 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
{
"name": "g5api",
"version": "2.0.2.4",
"private": true,
"type": "module",
"licenses": [
{
"type": "MIT",
"url": "http://opensource.org/licenses/MIT"
}
],
"homepage": "https://github.com/phlexplexico/G5API/issues",
"repository": {
"type": "git",
"url": "https://github.com/phlexplexico/G5API.git"
},
"author": {
"name": "Phlex Plexico",
"email": "flexing@phlexplexi.co",
"url": "https://phlexplexi.co"
},
"engines": {
"node": ">=16.17.0"
},
"directories": {
"docs": "./docs/",
"bin": "./bin/",
"routes": "./routes/",
"config": "./config"
},
"scripts": {
"build": "tsc",
"clean": "rm -rf ./dist",
"start": "tsc-watch --project . --outDir ./dist --onSuccess \"nodemon ./dist/bin/www.js\"",
"tsstart": "yarn build; nodemon ./dist/bin/www.js",
"startprod": "pm2 start ./prodrun.json --name \"G5API\"",
"restartprod": "pm2 restart G5API",
"stopprod": "pm2 stop G5API; pm2 delete G5API",
"doc": "tsc && jsdoc -c jsdoc.conf.json",
"docclean": "rm -rf ./docs",
"migrate-create-dev": "MYSQL_FLAGS=\"-CONNECT_WITH_DB\" db-migrate --env development --config config/development.json db:create get5dev",
"migrate-create-prod": "MYSQL_FLAGS=\"-CONNECT_WITH_DB\" db-migrate --env production --config config/production.json db:create get5",
"migrate-create-test": "MYSQL_FLAGS=\"-CONNECT_WITH_DB\" db-migrate --env test --config config/test.json db:create get5test",
"migrate-dev-downgrade": "db-migrate --env development --config config/development.json down:development",
"migrate-dev-upgrade": "db-migrate --env development --config config/development.json up:development",
"migrate-prod-downgrade": "db-migrate --env production --config config/production.json down:production",
"migrate-prod-upgrade": "db-migrate --env production --config config/production.json up:production",
"migrate-test-downgrade": "db-migrate --env test --config config/test.json down:test",
"migrate-test-upgrade": "db-migrate --env test --config config/test.json up:test",
"migrate-drop-dev": "MYSQL_FLAGS=\"-CONNECT_WITH_DB\" db-migrate --config config/development.json db:drop get5dev",
"migrate-drop-prod": "MYSQL_FLAGS=\"-CONNECT_WITH_DB\" db-migrate --env production --config config/production.json db:drop get5",
"migrate-drop-test": "MYSQL_FLAGS=\"-CONNECT_WITH_DB\" db-migrate --env test --config config/test.json db:drop get5test",
"prod": "NODE_ENV=production yarn migrate-create-prod && yarn migrate-prod-upgrade",
"test": "yarn build && NODE_ENV=test && yarn test:setup-user && yarn migrate-drop-test && yarn migrate-create-test && yarn migrate-test-upgrade && yarn test:user && yarn test:gameservers && yarn test:teams && yarn test:matches && yarn test:seasons && yarn test:vetoes && yarn test:mapstats && yarn test:playerstats && yarn test:vetosides && yarn test:maplists",
"test:gameservers": "yarn test:removeID && NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.gameservers.config.cjs",
"test:mapstats": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.mapstats.config.cjs",
"test:maplists": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.maplist.config.cjs",
"test:matches": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.matches.config.cjs",
"test:playerstats": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.playerstats.config.cjs",
"test:removeID": "sed -i -e 's.\"steam_ids\": \"[0-9][0-9]*\".\"steam_ids\": \"super_admins,go,here\".g' ./config/test.json",
"test:seasons": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.seasons.config.cjs",
"test:setup-user": "export STEAMID=`grep -o -m 1 '[0-9][0-9]*' dist/src/utility/mockProfile.js` && sed -i -e \"s/\\\"super_admins,go,here\\\"/\\\"$STEAMID\\\"/g\" config/test.json",
"test:teams": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.teams.config.cjs",
"test:user": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.users.config.cjs",
"test:vetoes": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.vetoes.config.cjs",
"test:vetosides": "NODE_OPTIONS=--experimental-vm-modules jest --testTimeout=10000 --detectOpenHandles --config ./jest_config/jest.vetosides.config.cjs"
},
"dependencies": {
"@node-steam/id": "^1.2.0",
"aes-js": "^3.1.2",
"bcrypt": "^5.1.1",
"compare-versions": "^6.1.0",
"config": "^3.3.11",
"connect-redis": "^7.1.1",
"cookie-parser": "~1.4.6",
"cors": "^2.8.5",
"db-migrate": "^0.11.13",
"db-migrate-mysql": "^2.2.0",
"debug": "~4.3.4",
"express": "~4.20.0",
"express-bearer-token": "^2.4.0",
"express-rate-limit": "^7.2.0",
"express-session": "^1.18.0",
"helmet": "^7.1.0",
"http-errors": "~2.0.0",
"jszip": "^3.10.1",
"morgan": "^1.10.0",
"mysql2": "^3.9.8",
"node-fetch": "^3.3.2",
"passport": "^0.6.0",
"passport-local": "^1.0.0",
"passport-steam": "^1.0.18",
"pm2": "^5.3.1",
"randomstring": "^1.3.0",
"rcon": "^1.1.0",
"redis": "^4.6.13",
"steamapi": "^3.0.8",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0"
},
"devDependencies": {
"@types/aes-js": "^3.1.1",
"@types/config": "^3.3.0",
"@types/express": "^4.17.17",
"@types/node": "^20.2.5",
"@types/steamapi": "^2.2.2",
"jest": "^29.5.0",
"jest-ts-webcompat-resolver": "^1.0.0",
"jsdoc": "^4.0.2",
"nodemon": "^2.0.22",
"passport-mock-strategy": "^2.0.0",
"redis-mock": "^0.56.3",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"tsc": "^2.0.4",
"tsc-watch": "^6.0.4",
"typescript": "^5.1.3"
}
}