forked from nhost/hasura-backend-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
170 lines (170 loc) 路 7.19 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
{
"name": "hasura-backend-plus",
"license": "MIT",
"repository": {
"url": "git://github.com/nhost/hasura-backend-plus.git",
"type": "git"
},
"version": "2.3.0",
"main": "src/start.ts",
"scripts": {
"check-test-env": "path-exists .env.test || (echo 'No .env.test file found' && return 1)",
"check-dev-env": "path-exists .env.development || (echo 'No .env.development file found' && return 1)",
"check-prod-env": "path-exists .env || (echo 'No .env file found' && return 1)",
"dev": "run-s check-dev-env && dotenv -e .env.development -- docker-compose -p \"hbp_development\" -f docker-compose.yaml -f docker-compose.development.yaml build hasura-backend-plus && dotenv -e .env.development -- docker-compose -p \"hbp_development\" -f docker-compose.yaml -f docker-compose.development.yaml run --service-ports --use-aliases --entrypoint \"npm run dev-command\" hasura-backend-plus",
"dev-command": "ts-node-dev -r tsconfig-paths/register --no-deps --respawn --poll --interval 1000 --no-notify src/ts-start.ts",
"dev:debug": "run-s check-test-env && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml run --service-ports --use-aliases --entrypoint \"npm run dev:debug-command\" hasura-backend-plus",
"dev:debug-command": "node -r ts-node/register -r tsconfig-paths/register --inspect-brk=0.0.0.0 src/ts-start.ts",
"test": "run-s check-test-env && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml build hasura-backend-plus && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml run --service-ports --use-aliases --entrypoint \"npm run test-command\" hasura-backend-plus; run-s test:cleanup",
"test-command": "jest --coverage",
"test:ci": "NODE_ENV=ci jest --coverage",
"test:watch": "run-s check-test-env && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml build hasura-backend-plus && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml run --service-ports --use-aliases --entrypoint \"npm run test:watch-command\" hasura-backend-plus; run-s test:cleanup",
"test:watch-command": "jest --watchAll",
"test:debug": "run-s check-test-env && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml build hasura-backend-plus && dotenv -e .env.test -- docker-compose -p \"hbp_test\" -f docker-compose.yaml -f docker-compose.test.yaml run --service-ports --use-aliases --entrypoint \"npm run test:debug-command\" hasura-backend-plus; run-s test:cleanup",
"test:debug-command": "node --inspect-brk=0.0.0.0 ./node_modules/jest/bin/jest.js --testTimeout=999999999 --runInBand",
"test:cleanup": "run-s remove-containers remove-test-volumes",
"remove-containers": "docker stop hbp_test_graphql-engine_1 hbp_test_mailhog_1 hbp_test_minio_1 hbp_test_postgres_1; docker rm hbp_test_graphql-engine_1 hbp_test_mailhog_1 hbp_test_minio_1 hbp_test_postgres_1",
"remove-test-volumes": "docker volume rm hbp_test_db_data hbp_test_minio_data",
"report-coverage": "codecov",
"docs:build": "vuepress build docs",
"docs:dev": "vuepress dev docs",
"build": "tsc",
"start": "node -r ./dist/start.js",
"lint": "eslint --ext .ts .",
"lint:fix": "npm run lint --fix"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@hapi/joi": "17.1.1",
"@nicokaiser/passport-apple": "^0.2.1",
"@types/sharp": "^0.27.1",
"archiver": "4.0.1",
"aws-sdk": "2.656.0",
"bcryptjs": "^2.4.3",
"body-parser": "1.19.0",
"compare-urls": "^2.0.0",
"cors": "2.8.5",
"dotenv": "8.2.0",
"ejs": "^3.1.6",
"email-templates": "7.0.4",
"express": "4.17.1",
"express-boom": "^3.0.0",
"express-fileupload": "1.1.9",
"express-rate-limit": "5.1.1",
"express-session": "^1.17.1",
"fs-extra": "^9.0.0",
"graphql": "15.0.0",
"graphql-request": "1.8.2",
"graphql-tag": "2.11.0",
"helmet": "3.22.0",
"hibp": "9.0.0",
"jose": "1.28.1",
"js-yaml": "3.13.1",
"lodash.kebabcase": "4.1.1",
"module-alias": "^2.2.2",
"morgan": "^1.10.0",
"nocache": "^2.1.0",
"node-fetch": "^2.6.1",
"nodemailer": "6.4.16",
"notevil": "1.3.3",
"otplib": "12.0.1",
"passport": "0.4.1",
"passport-bitbucket-oauth2": "^0.1.2",
"passport-facebook": "^3.0.0",
"passport-github2": "0.1.12",
"passport-gitlab2": "^5.0.0",
"passport-google-oauth20": "2.0.0",
"passport-linkedin-oauth2": "^2.0.0",
"passport-spotify": "^2.0.0",
"passport-twitter": "^1.0.4",
"passport-windowslive": "^1.0.2",
"path-exists-cli": "^1.0.0",
"pg": "^8.6.0",
"postgres-migrations": "^5.1.1",
"qrcode": "1.4.4",
"sharp": "^0.27.0",
"temp-dir": "^2.0.0",
"uuid": "7.0.3"
},
"devDependencies": {
"@types/archiver": "3.1.0",
"@types/bcryptjs": "^2.4.2",
"@types/body-parser": "1.19.0",
"@types/cors": "2.8.6",
"@types/death": "^1.1.1",
"@types/ejs": "3.0.2",
"@types/email-templates": "7.0.1",
"@types/express": "4.17.6",
"@types/express-boom": "^3.0.0",
"@types/express-fileupload": "1.1.3",
"@types/express-rate-limit": "5.0.0",
"@types/express-session": "^1.17.0",
"@types/fs-extra": "^8.1.0",
"@types/hapi__joi": "16.0.12",
"@types/helmet": "0.0.45",
"@types/jest": "25.2.1",
"@types/js-yaml": "3.12.3",
"@types/lodash.kebabcase": "4.1.6",
"@types/morgan": "^1.9.0",
"@types/node": "^13.11.1",
"@types/node-fetch": "^2.5.7",
"@types/nodemailer": "6.4.0",
"@types/passport": "1.0.3",
"@types/passport-facebook": "^2.1.9",
"@types/passport-github2": "1.2.4",
"@types/passport-google-oauth20": "2.0.3",
"@types/passport-linkedin-oauth2": "^1.5.1",
"@types/passport-spotify": "^1.1.0",
"@types/passport-twitter": "^1.0.34",
"@types/pg": "^7.14.11",
"@types/qrcode": "1.3.4",
"@types/supertest": "^2.0.8",
"@types/temp-dir": "^2.0.2",
"@types/uuid": "7.0.2",
"@typescript-eslint/eslint-plugin": "2.28.0",
"@typescript-eslint/parser": "2.28.0",
"@vuepress/plugin-back-to-top": "1.4.1",
"codecov": "^3.7.1",
"cz-conventional-changelog": "3.1.0",
"dotenv-cli": "^4.0.0",
"eslint": "6.8.0",
"eslint-config-prettier": "6.10.1",
"eslint-plugin-jest": "23.8.2",
"eslint-plugin-prettier": "3.1.3",
"get-port": "^5.1.1",
"husky": "4.2.5",
"jest": "25.3.0",
"jest-extended": "0.11.5",
"lint-staged": "10.1.3",
"markdown-it-multimd-table": "4.0.1",
"npm-run-all": "^4.1.5",
"prettier": "2.0.4",
"pretty-quick": "2.0.1",
"supertest": "4.0.2",
"ts-jest": "25.3.1",
"ts-node": "8.8.2",
"ts-node-dev": "^1.1.6",
"tsconfig-paths": "3.9.0",
"typescript": "3.8.3",
"vuepress": "^1.8.2"
},
"_moduleAliases": {
"@shared": "./dist/shared",
"@test": "./dist/test"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js,*.ts,*.md,*.json": [
"eslint --fix",
"prettier --write"
]
}
}