generated from companieshouse/node-review-web-starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
134 lines (134 loc) · 4.77 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
{
"name": "psc-verification-web",
"version": "1.0.0",
"description": "A starter web application for Node.js with Typescript",
"main": "dist/httpServer.js",
"engines": {
"node": ">=20.0.0",
"npm": "^10"
},
"scripts": {
"prebuild": "rm -rf ./dist",
"build:assets": "gulp build",
"build:server": "tsc --project tsconfig-build.json && cp -r src/views dist/ && cp -r src/config dist/",
"build": "tsc --project tsconfig-build.json && cp -r src/views dist/",
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
"lint:fix": "eslint 'src/**/*.ts' 'test/**/*.ts' --fix",
"coverage": "jest --coverage",
"test": "jest",
"test:coverage": "sh ./scripts/jest_coverage.sh",
"start": "npm run build && node dist/httpServer.js",
"start:watch": "nodemon",
"sonarqube-base-branch": "sonar-scanner",
"sonarqube-pull-request": "sonar-scanner -D sonar.pullrequest.base=main",
"sonarqube": "branch=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD); if [[ $branch == \"HEAD\" ]]; then echo $branch && npm run sonarqube-base-branch; else echo $branch && npm run sonarqube-pull-request; fi;"
},
"husky": {
"hooks": {
"pre-commit": "npm run lint && npm test"
}
},
"author": "Moses Wejuli <mwejuli@companieshouse.gov.uk>",
"license": "MIT",
"dependencies": {
"@companieshouse/api-sdk-node": "^2.0.217",
"@companieshouse/ch-node-utils": "^1.3.12",
"@companieshouse/node-session-handler": "^5.1.4",
"@companieshouse/structured-logging-node": "^2.0.1",
"@companieshouse/web-security-node": "^4.4.0",
"@types/supertest": "^6.0.2",
"axios": "^1.7.7",
"cookie-parser": "1.4.7",
"express": "^4.21.2",
"govuk_frontend_toolkit": "^9.0.1",
"govuk-elements-sass": "^3.1.3",
"govuk-frontend": "^4.8.0",
"http-errors": "^1.8.1",
"ioredis": "4.28.5",
"js-yaml": "^3.14.1",
"luxon": "^3.5.0",
"nunjucks": "3.2.4",
"sonarqube-scanner": "^3.5.0",
"tslib": "^2.8.1",
"uuid": "8.3.2",
"yargs": "17.7.2"
},
"devDependencies": {
"@types/cheerio": "^0.22.35",
"@types/cookie-parser": "^1.4.7",
"@types/express": "^4.17.21",
"@types/http-errors": "^1.8.2",
"@types/ioredis": "4.28.10",
"@types/jest": "^29.5.14",
"@types/js-yaml": "^3.12.10",
"@types/luxon": "^3.4.2",
"@types/mocha": "^7.0.2",
"@types/node": "^12.20.55",
"@types/nunjucks": "3.2.6",
"@types/uuid": "7.0.8",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"cheerio": "^1.0.0",
"eslint": "^8.57.1",
"eslint-config-standard": "14.1.1",
"eslint-plugin-check-file": "^2.8.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-standard": "4.1.0",
"eslint-plugin-unused-imports": "^3.2.0",
"gulp": "^5.0.0",
"gulp-clean": "^0.4.0",
"gulp-concat": "^2.6.1",
"gulp-sass": "^5.1.0",
"gulp-uglify": "^3.0.2",
"husky": "^4.3.8",
"jest": "^29.7.0",
"mocha": "^10.8.2",
"nock": "12.0.3",
"node-mocks-http": "^1.16.1",
"nodemon": "^3.1.7",
"nyc": "^15.1.0",
"sass": "1.80.2",
"supertest": "^6.3.4",
"ts-jest": "^29.2.5",
"ts-node": "8.10.2",
"typescript": "4.9.5"
},
"@comments devDependencies": {
"@package sass": [
"We're using an older version of @sass to suppress deprecation warnings thrown by the @govuk-frontend package during the build",
"We'll upgrade to the most recent version of @sass after this issue is fixed in the @govuk-frontend package"
]
},
"overrides": {
"chokidar": "3.5.3",
"glob-parent": "6.0.2",
"micromatch": "4.0.8"
},
"nodemonConfig": {
"watch": [
"./locales",
"./src",
"./assets/src"
],
"ext": "ts,js,json,njk,scss,env",
"legacyWatch": true,
"ignore": [
"**/*.test.ts"
],
"exec": "npm run build && node --inspect=0.0.0.0:9229 dist/httpServer.js"
},
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/companieshouse/node-review-web-starter-ts.git"
},
"keywords": [],
"bugs": {
"url": "https://github.com/companieshouse/node-review-web-starter-ts/issues"
},
"homepage": "https://github.com/companieshouse/node-review-web-starter-ts#readme"
}