forked from hmcts/sscs-cor-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
189 lines (189 loc) · 9.43 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
{
"name": "sscs-cor-frontend",
"description": "Continuous Online Resolution",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"start": "node server.js",
"dev": "yarn build:dev && TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=development nodemon",
"dev-docker": "concurrently \"yarn build:dev && TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=docker nodemon\" \"yarn mock-api\"",
"dev-mock-api": "concurrently \"yarn dev\" \"yarn mock-api\"",
"mock-api": "node test/mock/cor-backend/server & node test/mock/s2s/server & node test/mock/tribunals/server",
"mock-idam-api": "dyson test/mock/idam/services/ 8082",
"build": "yarn build:prod && yarn transpile",
"build:dev": "yarn build-sass && yarn build-js:dev && yarn copy-assets",
"build:prod": "yarn build-sass && yarn build-js && yarn copy-assets",
"build-sass": "node-sass app/client/sass/application.scss public/css/main.css --output-style compressed",
"copy-assets": "cp -R ./node_modules/govuk-frontend/govuk/assets ./public/govuk-frontend && cp -R ./app/client/images/ ./public/images && cp -a ./node_modules/@hmcts/ctsc-web-chat/assets/javascript/. ./public/js/ && cp -a ./node_modules/@hmcts/ctsc-web-chat/assets/css/. ./public/css/",
"build-js": "mkdir -p public/js && browserify ./app/client/javascript/main.ts -p [ tsify -p app/client ] | uglifyjs -c > ./public/js/main.js",
"build-js:dev": "mkdir -p public/js && browserify ./app/client/javascript/main.ts -p [tsify -p app/client] --debug -o ./public/js/main.js ",
"test": "yarn test:unit && yarn test:integration",
"test:unit": "cross-env NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=test nyc mocha --exit --recursive --require jsdom-global/register \"test/unit/*.ts\" \"test/unit/**/*.ts\"",
"test:unit-server": "cross-env NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=test mocha test/unit/*.ts test/unit/**/*.ts",
"test:unit-client": "cross-env NODE_PATH=. TS_NODE_PROJECT=app/client/tsconfig.json NODE_ENV=test mocha --require jsdom-global/register test/unit/client/**/*.ts",
"test:browser": "NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=test mocha test/browser/**/*.ts --colors --reporter mochawesome --reporter-options reportDir=functional-output/reports/functional,inlineAssets=true --exit",
"test:integration": "cross-env NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=test mocha test/integration/**/*.ts --exit",
"test:mutation": "NODE_CONFIG_DIR=./config stryker run test/mutation/stryker.conf.js",
"test:functional": "yarn test:browser --grep @mya",
"fortifyScan": "./test/java/gradlew -p test/java fortifyScan",
"test:nightly": "yarn test:browser --grep @nightly",
"test:fullfunctional": "yarn test:nightly",
"test:smoke": "NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json NODE_ENV=test mocha test/smoke/*.ts --grep @smoke --colors --reporter mochawesome --reporter-options reportDir=smoke-output/reports/smoke,inlineAssets=true --exit",
"test:audit": "./bin/run-yarn-audit.sh -f yarn-audit-known-issues",
"test:create-s2s-headers": "cross-env NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json node --require tsconfig-paths/register --require ts-node/register create-s2s-header.ts",
"test:create-data": "cross-env NODE_PATH=. TS_NODE_PROJECT=app/server/tsconfig.json node --require tsconfig-paths/register --require ts-node/register create-test-data.ts",
"test:create-data-aat": "cross-env SSCS_API_URL=http://sscs-tribunals-api-aat.service.core-compute-aat.internal COH_URL=http://coh-cor-aat.service.core-compute-aat.internal IDAM_API_URL=https://idam-api.aat.platform.hmcts.net S2S_URL=http://rpe-service-auth-provider-aat.service.core-compute-aat.internal S2S_OAUTH2_URL=https://idam-api.aat.platform.hmcts.net yarn test:create-data",
"test:create-data-demo": "cross-env SSCS_API_URL=http://sscs-tribunals-api-demo.service.core-compute-demo.internal COH_URL=http://coh-cor-demo.service.core-compute-demo.internal IDAM_API_URL=https://idam-api.aat.platform.hmcts.net S2S_URL=http://rpe-service-auth-provider-demo.service.core-compute-demo.internal S2S_OAUTH2_URL=https://idam-api.aat.platform.hmcts.net yarn test:create-data",
"test:crossbrowser": "cross-env SSCS_API_URL=http://sscs-tribunals-api-aat.service.core-compute-aat.internal COH_URL=http://coh-cor-aat.service.core-compute-aat.internal IDAM_API_URL=https://idam-api.aat.platform.hmcts.net S2S_URL=http://rpe-service-auth-provider-aat.service.core-compute-aat.internal S2S_OAUTH2_URL=https://idam-api.aat.platform.hmcts.net NODE_PATH=. NODE_ENV=test codeceptjs run-multiple ${BROWSER_GROUP:-'--all'} -c test/crossbrowser/saucelabs.conf.js --steps --reporter mocha-multi --verbose",
"test:coverage": "nyc report",
"test:a11y": "yarn -v it will run as part of functional test",
"test:all": "yarn test && yarn test:coverage",
"sonar-scan": "sonar-scanner -Dsonar.exclusions=app/server/app.ts,app/server/controllers/content.js,app/core/contentLookup.js,app/server/controllers/notificationRedirect.js,app/server/controllers/validateEmail.js,app/server/controllers/question.ts,app/server/setLanguage.ts,app/core/tyaNunjucks.js,app/server/controllers/idam-stub.ts,app/server/middleware/health.ts -Dsonar.javascript.lcov.reportPaths=test/coverage/html/lcov.info",
"tslint": "tslint -p ./tsconfig.json",
"lint": "eslint . && yarn tslint",
"transpile": "yarn tsc -p ./app/server/tsconfig.json"
},
"repository": {
"type": "git",
"url": "https://github.com/hmcts/sscs-cor-frontend.git"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint"
}
},
"dependencies": {
"@hmcts/ctsc-web-chat": "^0.2.4",
"@hmcts/nodejs-healthcheck": "^1.7.0",
"@hmcts/nodejs-logging": "^3.0.0",
"@hmcts/properties-volume": "^0.0.9",
"@types/express": "^4.16.0",
"@types/express-serve-static-core": "^4.16.0",
"applicationinsights": "^1.6.0",
"applicationinsights-native-metrics": "^0.0.5",
"axios": "^0.21.2",
"body-parser": "^1.17.1",
"chokidar": "^3.3.1",
"cmc-cookies-manager": "github:hmcts/cmc-cookies-manager#3.0.0",
"computed-style": "^0.3.0",
"config": "3.2.5",
"connect-redis": "^3.4.2",
"cookie-parser": "^1.4.3",
"csurf": "^1.10.0",
"express": "^4.17.1",
"express-session": "^1.17.1",
"govuk-elements-sass": "^3.1.3",
"govuk-frontend": "^3.11.0",
"govuk_template_jinja": "0.26.0",
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"helmet": "^3.21.2",
"http-status-codes": "^1.3.0",
"i": "^0.3.6",
"i18next": "^19.6.3",
"i18next-conv": "^9.2.0",
"i18next-express-middleware": "^1.9.1",
"i18next-sprintf-postprocessor": "^0.2.2",
"ioredis": "^4.2.0",
"joi": "^13.5.2",
"jquery": "^3.6.0",
"lodash": "^4.17.21",
"moment": "^2.18.1",
"multer": "^1.4.2",
"node-sass": "^4.13.1",
"nunjucks": "^3.2.3",
"nunjucks-date-filter": "^0.1.1",
"otp": "^0.1.3",
"proxyquire": "^2.1.3",
"reload": "^2.4.0",
"request-promise": "^4.2.2",
"serve-favicon": "^2.4.2",
"shelljs": "^0.8.3",
"superagent": "^3.8.2",
"promise-request-retry": "^1.0.2"
},
"devDependencies": {
"@hmcts/eslint-config": "^1.4.0",
"@types/chai": "^4.1.4",
"@types/chokidar": "^2.1.3",
"@types/cli-color": "^0.3.29",
"@types/config": "0.0.34",
"@types/connect-redis": "0.0.15",
"@types/cookie-parser": "^1.4.1",
"@types/jquery": "^3.3.6",
"@types/jsdom": "^11.12.0",
"@types/mocha": "^5.2.5",
"@types/moment": "^2.13.0",
"@types/multer": "^1.4.2",
"@types/node": "^9.4.6",
"@types/nunjucks": "^3.1.3",
"@types/puppeteer": "^2.0.1",
"@types/shelljs": "^0.8.3",
"@types/sinon": "^5.0.2",
"@types/sinon-chai": "^3.2.0",
"browserify": "^16.5.1",
"chai": "^3.5.0",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.2.0",
"chai-string": "^1.5.0",
"cli-color": "^1.3.0",
"codeceptjs": "^2.6.5",
"concurrently": "^5.2.0",
"cross-env": "^4.0.0",
"domready": "^1.0.8",
"dyson": "^3.0.1",
"eslint": "^7.0.0",
"husky": "^1.3.1",
"jsdom": "^16.2.1",
"jsdom-global": "^3.0.2",
"memory-cache": "^0.2.0",
"mocha": "^6.2.3",
"mocha-multi": "^1.1.3",
"mochawesome": "^4.1.0",
"nock": "^12.0.3",
"nodemon": "^2.0.4",
"nyc": "^15.0.1",
"pa11y": "https://github.com/chrisgrimble/pa11y/tarball/v5.1.0-HMCTS-BUG-FIX",
"puppeteer": "^3.1.0",
"sinon": "^2.1.0",
"sinon-chai": "^2.9.0",
"sonar-scanner": "^3.0.3",
"source-map-support": "^0.5.9",
"supertest": "^3.1.0",
"ts-node": "^7.0.1",
"tsconfig-paths": "^3.5.0",
"tsify": "^4.0.0",
"tslint": "^5.9.1",
"tslint-config-standard": "^8.0.1",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^3.0.0",
"uglify-js": "^3.8.0",
"uglifyjs": "^2.4.11",
"uuid": "^3.3.2",
"webdriverio": "^4.14.4",
"@stryker-mutator/api": "^4.0.0",
"@stryker-mutator/core": "^4.0.0",
"@stryker-mutator/mocha-runner": "^4.0.0"
},
"resolutions": {
"minimist": "^1.2.5",
"elliptic": "^6.5.4",
"axios": "0.21.2",
"lodash": "^4.17.21",
"hosted-git-info": "4.0.0",
"url-parse": "1.5.2",
"browserslist": "4.16.5",
"ws": "7.4.6",
"trim-newlines": "3.0.1",
"normalize-url": "4.5.1",
"tar": "^6.1.9",
"path-parse": "^1.0.7",
"ansi-regex": "5.0.1",
"set-value": "^4.1.0",
"glob-parent": "^6.0.2",
"validator": "13.7.0"
}
}