forked from PhlexPlexico/G5API
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
100 lines (100 loc) · 5 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
{
"name": "g5api",
"version": "1.3.0.0",
"private": true,
"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": "[email protected]",
"url": "https://phlexplexi.co"
},
"engines": {
"node": ">=14"
},
"directories": {
"docs": "./docs/",
"bin": "./bin/",
"routes": "./routes/",
"config": "./config"
},
"scripts": {
"start": "nodemon ./bin/www",
"startprod": "pm2 start ./prodrun.json --name \"G5API\"",
"restartprod": "pm2 restart G5API",
"stopprod": "pm2 stop G5API; pm2 delete G5API",
"doc": "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": "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",
"test:gameservers": "yarn test:removeID && jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.gameservers.config.js",
"test:mapstats": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.mapstats.config.js",
"test:matches": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.matches.config.js",
"test:playerstats": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.playerstats.config.js",
"test:removeID": "sed -i -e 's.\"steam_ids\": \"[0-9][0-9]*\".\"steam_ids\": \"super_admins,go,here\".g' ./config/test.json",
"test:seasons": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.seasons.config.js",
"test:setup-user": "export STEAMID=`grep -o -m 1 '[0-9][0-9]*' utility/mockProfile.js` && sed -i -e \"s/\\\"super_admins,go,here\\\"/\\\"$STEAMID\\\"/g\" config/test.json",
"test:teams": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.teams.config.js",
"test:user": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.users.config.js",
"test:vetoes": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.vetoes.config.js",
"test:vetosides": "jest --testTimeout=10000 --detectOpenHandles --forceExit --config ./jest_config/jest.vetosides.config.js"
},
"dependencies": {
"@node-steam/id": "^1.1.0",
"aes-js": "^3.1.2",
"config": "^3.2.3",
"connect-redis": "^4.0.4",
"cookie-parser": "~1.4.4",
"cors": "^2.8.5",
"db-migrate": "^0.11.6",
"db-migrate-mysql": "^2.1.1",
"debug": "~4.1.1",
"express": "~4.17.1",
"express-bearer-token": "^2.4.0",
"express-rate-limit": "^5.0.0",
"express-session": "^1.17.0",
"helmet": "^3.21.2",
"http-errors": "~1.7.3",
"jszip": "^3.7.0",
"morgan": "^1.9.1",
"mysql2": "^2.2.5",
"node-fetch": "^2.6.1",
"passport": "^0.4.0",
"passport-steam": "^1.0.14",
"pm2": "^4.5.1",
"randomstring": "^1.1.5",
"rcon": "^1.0.3",
"redis": "^3.1.1",
"steamapi": "^2.0.7",
"swagger-jsdoc": "^4.0.0",
"swagger-ui-express": "^4.1.4"
},
"devDependencies": {
"jest": "^25.1.0",
"jsdoc": "^3.6.7",
"nodemon": "^1.19.4",
"redis-mock": "^0.49.0",
"supertest": "^4.0.2"
}
}