forked from dwp/govuk-casa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
101 lines (101 loc) · 3.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
{
"name": "@dwp/govuk-casa",
"version": "8.7.2",
"description": "A framework for building GOVUK Collect-And-Submit-Applications",
"repository": {
"type": "git",
"url": "git@github.com:dwp/govuk-casa.git"
},
"main": "dist/casa.js",
"module": "dist/mjs/casa.js",
"exports": {
"import": "./dist/mjs/esm-wrapper.js",
"require": "./dist/casa.js"
},
"typings": "dist/casa.d.ts",
"files": [
"dist/**/*",
"locales/**/*",
"views/**/*"
],
"engines": {
"node": "^14.0.0 || ^16.0.0 || ^18.0.0",
"npm": "^8.0.0"
},
"scripts": {
"pipeline": "npm run coverage && npm run lint",
"coverage": "c8 npm test",
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "mocha './tests/**/*.test.js'",
"test:e2e": "spiderplan --worker-init ./tests/e2e/worker-init.js --language en ./tests/e2e/personas/**/*.yaml",
"test:dast": "spiderplan --worker-init ./tests/e2e/worker-init.js --language en ./tests/e2e/personas/**/traversal.yaml --workers 1 --zap --zap-proxy 'http://localhost:8080/' --zap-target-hostname 'host.docker.internal'",
"test:dast:report": "curl -s --header 'X-ZAP-Api-Key: secret' http://localhost:8080/OTHER/core/other/htmlreport > gl-dast-report.html",
"test:dast:setup": "docker run --rm --name casa-dast -d -u zap -p 8080:8080 -i owasp/zap2docker-stable zap.sh -daemon -host 0.0.0.0 -port 8080 -config api.addrs.addr.name=\".*\" -config api.addrs.addr.regex=true -config api.key=secret; npm run test:dast:ready-check",
"test:dast:ready-check": "while [ \"$(curl -Is -o /dev/null -w %{response_code} http://localhost:8080/)\" -ne \"200\" ]; do sleep 1; echo 'Waiting for ZAP to start ...'; done",
"test:dast:teardown": "docker stop casa-dast",
"lint": "eslint .",
"build": "npm run build:prepare && npm run build:sources && npm run build:css-assets",
"build:prepare": "rm -rf dist/* && mkdir -p dist/assets/js/ && mkdir -p dist/assets/css/",
"build:sources": "tsc -p tsconfig-cjs.json && ./scripts/fixup.sh",
"build:css-assets": "node scripts/compile-sass.js",
"build:api-docs": "npx jsdoc -c ./jsdoc.json -d ./docs/api/ --debug -P '' -r -R ./README.md --verbose -t ./node_modules/docdash ./src",
"prepare": "npm run build",
"upgrade-deps": "OD=$(npm outdated --long --parseable); echo \"$OD\" | grep ':devDependencies:' | awk -F: '{ print $4 }' | xargs npm i -DE; echo \"$OD\" | grep ':dependencies:' | awk -F: '{ print $4 }' | xargs npm i -E"
},
"keywords": [],
"author": "DWP Digital",
"license": "ISC",
"type": "module",
"dependencies": {
"cookie-parser": "1.4.6",
"csurf": "1.11.0",
"debug": "4.3.4",
"deepmerge": "4.2.2",
"express": "4.18.2",
"express-session": "1.17.3",
"govuk-frontend": "4.4.0",
"graphlib": "2.1.8",
"helmet": "6.0.1",
"i18next": "22.0.6",
"i18next-http-middleware": "3.2.1",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"luxon": "3.1.1",
"nunjucks": "3.2.3",
"path-to-regexp": "6.2.1",
"uuid": "9.0.0",
"validator": "13.7.0"
},
"devDependencies": {
"@babel/core": "7.20.5",
"@babel/eslint-parser": "7.19.1",
"@babel/preset-env": "7.20.2",
"@ckeditor/jsdoc-plugins": "31.1.13",
"@commitlint/config-conventional": "17.3.0",
"@dwp/casa-spiderplan": "2.5.1",
"@dwp/casa-spiderplan-a11y-plugin": "0.1.5",
"@dwp/casa-spiderplan-zap-plugin": "0.1.2",
"@dwp/eslint-config-base": "6.0.0",
"@types/express": "4.17.14",
"@types/node": "18.11.10",
"@types/nunjucks": "3.2.1",
"c8": "7.12.0",
"chai": "4.3.7",
"cheerio": "1.0.0-rc.12",
"commitlint": "17.3.0",
"docdash": "2.0.0",
"eslint": "8.28.0",
"eslint-plugin-no-unsafe-regex": "1.0.0",
"eslint-plugin-security": "1.5.0",
"eslint-plugin-sonarjs": "0.16.0",
"fast-check": "3.3.0",
"jsdoc": "4.0.0",
"jsdoc-tsimport-plugin": "1.0.5",
"mocha": "10.1.0",
"sass": "1.56.1",
"sinon": "14.0.2",
"sinon-chai": "3.7.0",
"supertest": "6.3.1",
"typescript": "4.9.3"
}
}