-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
141 lines (141 loc) · 5.78 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
{
"name": "di-account-management-frontend",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"scripts": {
"build-ts": "tsc",
"build": "npm run build-sass && npm run build-ts && npm run copy-assets && npm run build-js:analytics && npm run minfiy-build-js",
"build-dev": "npm run build-sass && npm run build-ts && npm run copy-assets",
"build-sass": "rm -rf dist/public/style.css && sass --load-path=node_modules/govuk-frontend/govuk --no-source-map src/assets/scss/application.scss dist/public/style.css --style compressed",
"build-js:analytics": "cp node_modules/@govuk-one-login/frontend-analytics/lib/analytics.js dist/public/scripts",
"clean": "rm -rf dist node_modules logs.json",
"clean-modules": "rm -rf node_modules",
"concat-client-js": "mkdir -p dist/public/scripts && uglifyjs src/assets/javascript/cookies.js src/assets/javascript/application.js -o dist/public/scripts/application.js -b",
"copy-assets": "mkdir -p dist && npm run concat-client-js && copyfiles -u 1 src/**/*.njk dist/ src/locales/**/** dist/ src/config/*.txt dist/ && cp node_modules/govuk-frontend/govuk/all.js dist/public/scripts && cp src/assets/javascript/showPassword.js dist/public/scripts",
"deep-clean": "npm cache clear --force && npm cache clean --force && npm run clean && npm install && npm run build",
"dev": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"",
"dummy-server": "node dev-app.js",
"depcheck": "depcheck",
"lint": "eslint . --ext .ts,.js",
"minfiy-build-js": "uglifyjs dist/public/scripts/application.js -o dist/public/scripts/application.js -c -m && uglifyjs dist/public/scripts/all.js -o dist/public/scripts/all.js -c -m && uglifyjs dist/public/scripts/showPassword.js -o dist/public/scripts/showPassword.js -c -m",
"start": "node dist/server.js",
"test:audit": "npm audit",
"test:integration": "rm -rf test/coverage && NODE_ENV=test nyc mocha -r dotenv/config -P tsconfig.mocha.json \"src/**/*-integration.test.ts\"",
"test:unit": "rm -rf test/coverage && NODE_ENV=development nyc mocha -r dotenv/config --exclude \"src/**/*-integration.test.ts\" \"test/unit/**/*.test.ts\" --recursive \"src/**/*.test.ts\"",
"test": "rm -rf test/coverage && NODE_ENV=development nyc mocha -r dotenv/config \"test/unit/**/*.test.ts\" --recursive \"src/**/*.test.ts\"",
"test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test:unit",
"test:js": "NODE_ENV=development nyc mocha -r dotenv/config \"src/assets/**/*.test.js\"",
"watch-node": "nodemon -r dotenv/config --inspect=0.0.0.0:9230 dist/server.js | pino-pretty",
"watch-ts": "tsc -w",
"watch-sass": "sass --load-path=node_modules/govuk-frontend/govuk --watch src/assets/scss/application.scss dist/public/style.css",
"prepare": "husky || true"
},
"mocha": {
"diff": true,
"extension": [
"js",
"ts"
],
"timeout": 30000,
"recursive": true,
"require": [
"ts-node/register"
],
"exit": true
},
"dependencies": {
"@aws-crypto/client-node": "^4.0.1",
"@aws-sdk/client-dynamodb": "^3.624.0",
"@aws-sdk/client-kms": "^3.624.0",
"@aws-sdk/client-sns": "^3.624.0",
"@aws-sdk/client-sqs": "^3.624.0",
"@aws-sdk/lib-dynamodb": "^3.624.0",
"@aws-sdk/util-dynamodb": "^3.609.0",
"@govuk-one-login/frontend-analytics": "2.0.1",
"@govuk-one-login/frontend-language-toggle": "^1.1.0",
"axios": "^1.7.3",
"base64url": "3.0.1",
"body-parser": "^1.20.2",
"connect-dynamodb": "^3.0.3",
"cookie-parser": "^1.4.6",
"csurf": "^1.11.0",
"dompurify": "^3.1.6",
"express": "^4.19.2",
"express-session": "^1.18.0",
"express-validator": "^7.1.0",
"fast-memoize": "^2.5.2",
"govuk-frontend": "^4.8.0",
"helmet": "7.1.0",
"i18next": "^23.12.2",
"i18next-fs-backend": "^2.3.2",
"i18next-http-middleware": "^3.6.0",
"jose": "^5.6.3",
"jsdom": "^24.1.1",
"libphonenumber-js": "^1.11.5",
"nunjucks": "^3.2.4",
"openid-client": "^5.6.5",
"otplib": "^12.0.1",
"pino": "^9.3.2",
"pino-http": "^10.2.0",
"prettier": "^3.3.3",
"qrcode": "^1.5.4",
"uuid": "^10.0.0",
"xss": "^1.0.15",
"xstate": "^5.17.1"
},
"devDependencies": {
"@types/chai": "^4.3.6",
"@types/chai-as-promised": "^7.1.8",
"@types/cheerio": "^0.22.35",
"@types/cookie-parser": "^1.4.7",
"@types/csurf": "^1.11.5",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.0",
"@types/i18next-fs-backend": "^1.1.5",
"@types/mocha": "^10.0.7",
"@types/node": "^22.1.0",
"@types/nunjucks": "^3.2.6",
"@types/qrcode": "^1.5.5",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.18.0",
"chai": "^4.5.0",
"chai-as-promised": "^7.1.2",
"cheerio": "^1.0.0-rc.12",
"concurrently": "^8.2.2",
"copyfiles": "^2.4.1",
"decache": "^4.6.2",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-mocha": "^10.5.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"mocha": "10.7.0",
"nock": "^13.5.4",
"nodemon": "3.1.4",
"nyc": "^17.0.0",
"pino-pretty": "^11.2.2",
"sass": "^1.77.8",
"sinon": "^18.0.0",
"sinon-chai": "^3.7.0",
"supertest": "^7.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.5.4",
"uglify-js": "^3.19.1"
},
"resolutions": {
"minimist": "1.2.6",
"json5": "2.2.3"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml}": [
"npx prettier --write"
]
}
}