-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
114 lines (114 loc) · 5.27 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
{
"name": "gameshq-api",
"version": "1.6.0",
"description": "Headquarters of all the things XTeam games",
"main": "index.js",
"scripts": {
"start": "npm run prepare-db && node dist/src/index.js",
"start:noseed": "node dist/src/index.js -- noseed",
"dev": "npm install --frozen-lockfile --production=false && npm run build && npm run prepare-db && concurrently \"tsc --watch\" nodemon",
"test": "cross-env NODE_ENV=test ENV=test npm run test:all",
"test:coverage": "cross-env NODE_ENV=test ENV=test npm run test:all:coverage",
"test:integration": "cross-env NODE_ENV=test ENV=test npm run test:_integration",
"test:integration:single": "cross-env NODE_ENV=test ENV=test npm run test:prepare:integration && npm run mocha",
"test:unit": "cross-env NODE_ENV=test ENV=test npm run mocha \"test/**/!(*integration).test.ts\"",
"test:unit:single": "cross-env NODE_ENV=test ENV=test npm run mocha",
"mocha": "cross-env ENV=test mocha --unhandled-rejections=strict",
"mocha:coverage": "cross-env ENV=test nyc mocha --unhandled-rejections=strict",
"eslint": "eslint src --quiet --fix",
"tsc": "tsc --noEmit -p tsconfig.ci.json",
"build": "npm run clean && tsc && rsync -av --exclude='*.ts' src/ dist/src",
"build:start": "npm run build && npm run start",
"build:start:noseed": "npm run build && npm run start:noseed",
"db:seed:up": "ts-node --transpile-only -e 'require(`./migrate.ts`).seedUp()'",
"db:seed:down": "ts-node --transpile-only -e 'require(`./migrate.ts`).seedDown()'",
"db:migrate:up": "ts-node --transpile-only -e 'require(`./migrate.ts`).migrateUp()'",
"db:migrate:down": "ts-node --transpile-only -e 'require(`./migrate.ts`).migrateDown()'",
"db:migrate:add": "npx sequelize-cli migration:generate --name",
"//1": "/*****************************************************************************",
"//2": "* Rest of those commands are used internally and should not be used directly!",
"//3": "*****************************************************************************/",
"prepare-db": "echo preparing db for nodeenv: $NODE_ENV env: $ENV && npm run db:seed:up && npm run db:migrate:up",
"clean": "rm -rf dist",
"db:test:create": "docker compose -p gameshq-api-test-project -f 'docker-compose-test.yml' up -d",
"db:test:clear": "docker compose -p gameshq-api-test-project -f 'docker-compose-test.yml' down && docker volume rm gameshq-api-test-project_postgres",
"test:all": "concurrently --kill-others-on-fail --names *typescript,*****eslint,*tests:unit,integration --prefix-colors blue.inverse,blue,yellow,green 'npm run tsc' 'npm run eslint' 'npm run test:unit' 'npm run test:integration'",
"test:all:coverage": "concurrently --kill-others-on-fail --names *typescript,*****eslint,**tests:all, --prefix-colors blue.inverse,blue,yellow 'npm run tsc' 'npm run eslint' 'npm run test:_all:coverage'",
"test:prepare:integration": "npm run db:test:create && cross-env NODE_ENV=test ENV=test npm run prepare-db",
"test:_integration": "npm run test:prepare:integration && npm run mocha \"test/**/*.integration.test.ts\"",
"test:_all:coverage": "npm run test:prepare:integration && npm run mocha:coverage \"test/**/*.test.ts\"",
"prepare": "husky install"
},
"author": "X-Team Community",
"license": "ISC",
"dependencies": {
"@hapi/bell": "12.3.0",
"@hapi/boom": "10.0.0",
"@hapi/catbox": "12.0.0",
"@hapi/catbox-memory": "6.0.0",
"@hapi/cookie": "11.0.2",
"@hapi/hapi": "20.2.2",
"@hapi/inert": "6.0.5",
"@hapi/vision": "6.1.0",
"@sentry/node": "8.34.0",
"@slack/client": "5.0.2",
"@types/catbox": "10.0.7",
"@types/catbox-memory": "4.0.0",
"dotenv": "16.0.1",
"fast-safe-stringify": "2.1.1",
"firebase-admin": "10.3.0",
"handlebars": "4.7.7",
"hapi-swagger": "14.5.4",
"husky": "^9.1.6",
"indefinite": "2.4.1",
"joi": "17.6.0",
"moment": "2.29.3",
"node-fetch": "2.6.1",
"pg": "8.7.3",
"reflect-metadata": "0.1.13",
"sequelize": "6.20.1",
"sequelize-typescript": "2.1.3",
"source-map-support": "^0.5.21",
"sql-log-prettifier": "^0.1.2",
"uuid": "8.3.2",
"winston": "3.7.2"
},
"devDependencies": {
"@types/boom": "7.3.2",
"@types/chai": "4.3.1",
"@types/hapi__bell": "11.0.3",
"@types/hapi__catbox-memory": "4.1.3",
"@types/hapi__cookie": "10.1.4",
"@types/hapi__hapi": "20.0.12",
"@types/hapi__inert": "5.2.3",
"@types/hapi__vision": "5.5.3",
"@types/indefinite": "2.3.1",
"@types/joi": "17.2.3",
"@types/lodash": "4.14.182",
"@types/mocha": "9.1.1",
"@types/node": "17.0.42",
"@types/node-fetch": "2.6.1",
"@types/sinon": "10.0.11",
"@types/sinon-chai": "3.2.8",
"@types/uuid": "8.3.4",
"@types/validator": "13.7.3",
"@typescript-eslint/eslint-plugin": "5.28.0",
"@typescript-eslint/parser": "5.28.0",
"chai": "4.3.6",
"concurrently": "7.2.1",
"cross-env": "7.0.3",
"eslint": "8.17.0",
"eslint-plugin-functional": "4.2.1",
"eslint-plugin-import": "2.26.0",
"mocha": "10.0.0",
"nodemon": "2.0.16",
"nyc": "^15.1.0",
"prettier": "2.8.8",
"pretty-quick": "3.1.3",
"sinon": "14.0.0",
"sinon-chai": "3.7.0",
"ts-node": "10.8.1",
"typescript": "4.7.3",
"umzug": "3.1.1"
}
}