This repository has been archived by the owner on Jan 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
137 lines (137 loc) · 4.48 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
{
"name": "yh-community-contacts-api",
"version": "7.1.14",
"description": "Yeovil Hospital's RESTful CRUD API for community team contact details",
"main": "dist/app.js",
"type": "commonjs",
"repository": "git+https://github.com/Fdawgs/yh-community-contacts-api.git",
"homepage": "https://github.com/Fdawgs/yh-community-contacts-api",
"bugs": {
"url": "https://github.com/Fdawgs/yh-community-contacts-api/issues"
},
"license": "MIT",
"author": "Frazer Smith <frazer.smith@somersetft.nhs.uk>",
"funding": "https://justgiving.com/yeovilhospital",
"engines": {
"node": ">=18.12.1"
},
"scripts": {
"benchmark": "autocannon -a 1000 \"http://0.0.0.0:3000/admin/healthcheck\"",
"build": "node scripts/esbuild.js",
"db:migrate": "node src/migrate.js",
"jest": "jest",
"jest:coverage": "jest --coverage",
"lint": "eslint . --cache --ext js,jsx --ignore-path .gitignore",
"lint:licenses": "node scripts/license-checker.js",
"lint:lockfile": "lockfile-lint -p package-lock.json -t npm -a npm -s -i",
"lint:prettier": "prettier . -c -u",
"lint:prettier:fix": "prettier . -w -u",
"prepare": "husky install && npx playwright install firefox --with-deps",
"start": "node .",
"start:dev": "nodemon src/app.js | pino-pretty",
"test": "npm run lint && npm run jest",
"test:db:mssql:build": "docker run -p 1433:1433 --name yh-community-contacts-api-mssql -e ACCEPT_EULA=Y -e SA_PASSWORD=Password! -e MSSQL_PID=Express -d mcr.microsoft.com/mssql/server:2019-latest",
"test:db:mssql:down": "docker stop yh-community-contacts-api-mssql",
"test:db:mssql:nuke": "docker stop yh-community-contacts-api-mssql && docker rm -v yh-community-contacts-api-mssql",
"test:db:mssql:up": "docker start yh-community-contacts-api-mssql",
"test:db:postgres:build": "docker run -p 5432:5432 --name yh-community-contacts-api-postgres -e POSTGRES_DB=community_contacts_api -e POSTGRES_PASSWORD=password -d postgres:14-alpine",
"test:db:postgres:down": "docker stop yh-community-contacts-api-postgres",
"test:db:postgres:nuke": "docker stop yh-community-contacts-api-postgres && docker rm -v yh-community-contacts-api-postgres",
"test:db:postgres:up": "docker start yh-community-contacts-api-postgres"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"jest": {
"collectCoverageFrom": [
"src/**/*.js",
"!src/app.js"
],
"coverageReporters": [
"text",
"lcovonly"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"snapshotResolver": "./.jest.snapshot-resolver.js",
"testEnvironment": "node",
"testTimeout": 60000
},
"nodemonConfig": {
"env": {
"NODE_ENV": "development"
},
"watch": [
".env",
"src/**/!(*.test).*"
]
},
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
"@types/jest": "^29.5.11",
"autocannon": "^7.14.0",
"esbuild": "^0.19.10",
"esbuild-plugin-glob": "^2.2.3",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-jsdoc": "^48.0.4",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-regexp": "^2.2.0",
"eslint-plugin-security": "^2.1.0",
"glob": "^10.3.10",
"husky": "^9.0.6",
"jest": "^29.7.0",
"license-checker": "^25.0.1",
"lockfile-lint": "^4.12.1",
"nodemon": "^3.0.3",
"pino-pretty": "^10.3.1",
"playwright": "^1.41.1",
"prettier": "^3.1.1",
"spdx-copyleft": "^1.0.0"
},
"dependencies": {
"@fastify/accepts": "^4.3.0",
"@fastify/autoload": "^5.8.0",
"@fastify/basic-auth": "^5.1.1",
"@fastify/bearer-auth": "^9.3.0",
"@fastify/compress": "^6.5.0",
"@fastify/cors": "^8.5.0",
"@fastify/helmet": "^11.1.1",
"@fastify/rate-limit": "^9.1.0",
"@fastify/sensible": "^5.5.0",
"@fastify/static": "^6.12.0",
"@fastify/swagger": "^8.14.0",
"@fastify/under-pressure": "^8.3.0",
"bcryptjs": "^2.4.3",
"dotenv": "^16.4.1",
"env-schema": "^5.2.1",
"fastify": "^4.25.2",
"fastify-disablecache": "^3.1.9",
"fastify-floc-off": "^2.1.11",
"fastify-json-to-xml": "^1.1.11",
"fastify-plugin": "^4.5.1",
"file-stream-rotator": "^1.0.0",
"fluent-json-schema": "^4.2.1",
"mssql": "^10.0.2",
"pg": "^8.11.3",
"pg-connection-string": "^2.6.2",
"pino": "^8.17.2",
"postgrator": "^5.0.1",
"redoc": "^2.1.3",
"secure-json-parse": "^2.7.0",
"upath": "^2.0.1"
}
}