This repository has been archived by the owner on Apr 26, 2021. It is now read-only.
generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
158 lines (158 loc) · 5.98 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
{
"name": "adoption-frontend",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"start": "./node_modules/.bin/ts-node -r tsconfig-paths/register src/main/server.ts",
"cichecks": "yarn && yarn build:prod && yarn lint && yarn test && yarn test:routes && yarn test:a11y",
"lint": "sass-lint -v -q && eslint . --ext .js,.jsx,.ts,.tsx",
"build:dev": "concurrently \"yarn webpack --watch\" \"nodemon --config nodemon.json\"",
"build:prod": "yarn webpack --mode production --config webpack.config.ts",
"test": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=mocha LOG_LEVEL=OFF mocha --opts mocha.opts $(find src/test \\( -name '*.ts' \\) ! -path '*a11y*' ! -path '*/routes/*') --reporter-options reportFilename=unit,inlineAssets=true,reportTitle=adoption-frontend-unit",
"test:routes": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=mocha LOG_LEVEL=OFF mocha --opts mocha.opts $(find src/test \\( -name '*.ts' \\) -path '*/routes/*') --timeout 10000 --reporter-options reportFilename=routes,inlineAssets=true,reportTitle=adoption-frontend-routes",
"test:a11y": "TS_NODE_TRANSPILE_ONLY=true NODE_ENV=mocha LOG_LEVEL=OFF mocha --exit --opts mocha.opts src/test/a11y/a11y.ts --timeout 60000 --reporter-options reportFilename=a11y,inlineAssets=true,reportTitle=adoption-frontend-a11y",
"test:coverage": "yarn run build:prod && TS_NODE_TRANSPILE_ONLY=true NODE_ENV=mocha LOG_LEVEL=OFF nyc --cache false mocha --exit --timeout 8000 --opts mocha.opts $(find src/test \\( -name '*.ts' \\) ! -path '*a11y*')",
"test:coverage-unit": "yarn run build:prod && TS_NODE_TRANSPILE_ONLY=true NODE_ENV=mocha LOG_LEVEL=OFF nyc --cache false mocha --opts mocha.opts $(find src/test \\( -name '*.ts' \\) ! -path '*a11y*' ! -path '*/routes/*')",
"test:codacy-upload": "cat ./coverage-report/lcov.info | codacy-coverage",
"test:codecov-upload": "codecov -f ./coverage-report/lcov.info",
"test:smoke": "exit 0",
"test:functional": "exit 0",
"sonar-scan": "sonar-scanner -Dsonar.projectName='Adoption :: Frontend' -Dsonar.sources=src/main -Dsonar.tests=src/test -Dsonar.javascript.lcov.reportPaths=coverage-report/lcov.info -Dsonar.exclusions=src/main/app.ts,src/main/server.ts,src/main/assets/**,src/main/modules/**,src/main/index.js"
},
"dependencies": {
"@hmcts/info-provider": "^1.0.0",
"@hmcts/nodejs-healthcheck": "^1.5.1",
"@hmcts/nodejs-logging": "^3.0.1",
"@hmcts/properties-volume": "^0.0.9",
"@types/config": "^0.0.36",
"@types/cookie-parser": "^1.4.2",
"@types/cookies": "^0.7.4",
"@types/copy-webpack-plugin": "^5.0.0",
"@types/csurf": "^1.9.36",
"@types/es6-promisify": "^6.0.0",
"@types/express": "^4.17.2",
"@types/form-data": "^2.5.0",
"@types/helmet": "^0.0.45",
"@types/http-status-codes": "^1.2.0",
"@types/i18next-node-fs-backend": "^2.1.0",
"@types/i18next-sprintf-postprocessor": "^0.2.0",
"@types/jsonwebtoken": "^8.3.7",
"@types/mini-css-extract-plugin": "^0.9.1",
"@types/moment": "^2.13.0",
"@types/nock": "^11.1.0",
"@types/node": "^13.7.0",
"@types/node-fetch": "^2.5.4",
"@types/nunjucks": "^3.1.3",
"@types/request-promise": "^4.1.45",
"@types/require-directory": "^2.1.1",
"@types/serve-favicon": "^2.5.0",
"@types/uuid": "^3.4.7",
"applicationinsights": "^1.7.2",
"babel-eslint": "^10.1.0",
"bluebird": "^3.7.2",
"concurrently": "^5.1.0",
"config": "^3.2.5",
"cookie-parser": "^1.4.4",
"cookies": "^0.8.0",
"csurf": "^1.11.0",
"express": "^4.17.1",
"express-nunjucks": "^2.2.3",
"form-data": "^3.0.0",
"govuk-elements-sass": "^3.1.3",
"govuk_template_jinja": "^0.26.0",
"govuk-frontend": "^3.5.0",
"helmet": "^3.21.2",
"http-status-codes": "^1.4.0",
"husky": "^4.2.3",
"i18next": "^18.0.0",
"i18next-conv": "^9.2.0",
"i18next-express-middleware": "^1.9.1",
"i18next-node-fs-backend": "^2.1.0",
"i18next-sprintf-postprocessor": "^0.2.2",
"js-base64": "^2.5.2",
"jsonwebtoken": "^8.5.1",
"moment": "^2.24.0",
"node-fetch": "^2.6.0",
"nunjucks": "^3.2.0",
"nyc": "^15.0.0",
"otp": "^0.1.3",
"request-promise": "^4.2.5",
"require-directory": "^2.1.1",
"serve-favicon": "^2.5.0",
"sinon-express-mock": "^2.2.1",
"ts-node": "^8.6.2",
"tsconfig-paths": "^3.9.0",
"typescript": "^3.7.5"
},
"devDependencies": {
"@types/chai": "^4.2.9",
"@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4",
"@types/chai-as-promised": "^7.1.2",
"@types/mocha": "^7.0.1",
"@types/sinon": "^7.5.1",
"@types/sinon-chai": "^3.2.3",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.19.2",
"babel-loader": "^8.0.6",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"codacy-coverage": "^3.4.0",
"codeceptjs": "^2.5.0",
"codecov": "^3.6.5",
"copy-webpack-plugin": "^5.1.1",
"css-loader": "^3.4.2",
"debug": "^4.1.1",
"eslint": "^6.8.0",
"mini-css-extract-plugin": "^0.9.0",
"mocha": "^7.0.1",
"mochawesome": "^4.1.0",
"nock": "^12.0.1",
"node-sass": "^4.13.1",
"nodemon": "^2.0.2",
"pa11y": "^5.3.0",
"request": "^2.88.0",
"sass-lint": "^1.13.1",
"sass-loader": "^8.0.2",
"sinon": "^8.1.1",
"sinon-chai": "^3.4.0",
"sinon-express-mock": "^2.2.1",
"sonarqube-scanner": "^2.5.0",
"style-loader": "^1.1.3",
"supertest": "^4.0.2",
"ts-loader": "^6.2.1",
"tslint": "5.20.1",
"uglifyjs-webpack-plugin": "^2.2.0",
"webpack": "^4.41.6",
"webpack-cli": "^3.3.11",
"webpack-node-externals": "^1.7.2"
},
"nyc": {
"extension": [
".ts"
],
"include": [
"src/main"
],
"exclude": [
"**/*.d.ts",
"src/main/public"
],
"reporter": [
"lcov",
"text-summary"
],
"report-dir": "coverage-report",
"all": true
},
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"pre-push": "yarn cichecks"
}
}
}