This repository was archived by the owner on Sep 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 4.36 KB
/
package.json
File metadata and controls
109 lines (109 loc) · 4.36 KB
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
{
"name": "cvs-svc-test-results",
"version": "1.0.0",
"description": "",
"main": "src/handler.js",
"engines": {
"node": "18.*",
"npm": "9.*"
},
"scripts": {
"start": "BRANCH=local serverless offline start --noPrependStageInUrl",
"debug": "export SLS_DEBUG=* && BRANCH=local node --inspect ./node_modules/serverless/bin/serverless offline start",
"build": "node_modules/typescript/bin/tsc --rootDir ./ --outDir .build --sourceMap false && npm run build:copy",
"build:copy": "find src -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build && find tests -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build",
"test:unit": "BRANCH=local SLS_DEBUG=* AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --testMatch=\"**/*.unitTest.ts\" --runInBand",
"test": "npm run test:unit -- --coverage",
"test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand --detectOpenHandles",
"test-i": "AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 npm run test:integration -- --globalSetup='./scripts/setup.ts' --globalTeardown='./scripts/teardown.ts'",
"security-checks": "git secrets --scan",
"lint:fix": "eslint '*/**/*.ts' --fix",
"lint": "eslint '*/**/*.ts' -f json -o .reports/eslint/eslint-report.json",
"format": "prettier --write .",
"commit-msg": "commitlint --edit",
"pre-commit": "npm run security-checks && npm run audit && npm run format && npm run lint",
"prepush": "npm run test && npm run build && npm run test-i",
"sonar-scanner": "sonar-scanner",
"audit": "npm audit --prod",
"package": "mkdir ${ZIP_NAME} && cp package.json package-lock.json ${ZIP_NAME}/ && cp -r .build/src/* ${ZIP_NAME}/ && cd ${ZIP_NAME} && npm ci --production --ignore-scripts && rm package.json package-lock.json && zip -qr ../${ZIP_NAME}.zip .",
"prepare": "husky install",
"tools-setup": "sls dynamodb install"
},
"repository": {
"type": "git",
"url": "git+https://github.com/dvsa/cvs-svc-test-results.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/dvsa/cvs-svc-test-results/issues"
},
"homepage": "https://github.com/dvsa/cvs-svc-test-results#readme",
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@dvsa/eslint-config-ts": "^3.0.0",
"@types/aws-lambda": "^8.10.109",
"@types/babel__traverse": "^7.11.1",
"@types/jest": "^24.0.21",
"@types/jest-plugin-context": "^2.9.2",
"@types/joi": "^17.2.3",
"@types/lodash": "^4.14.144",
"@types/node": "^14.18.33",
"@types/prettier": "^2.1.5",
"@types/sinon": "^7.0.13",
"@types/supertest": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"aws-sdk-client-mock": "^4.0.1",
"commitlint-plugin-function-rules": "^1.7.1",
"eslint": "^8.28.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^2.7.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-security": "^1.5.0",
"husky": "^8.0.2",
"jest": "^26.6.3",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"prettier": "^2.3.2",
"serverless": "^3.28.1",
"serverless-dynamodb": "^0.2.43",
"serverless-offline": "^12.0.4",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^2.1.4",
"sinon": "^7.3.2",
"sonarqube-scanner": "^3.3.0",
"supertest": "^4.0.2",
"ts-jest": "^26.1.1",
"typescript": "^3.8.3"
},
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.632.0",
"@aws-sdk/client-lambda": "^3.634.0",
"@aws-sdk/lib-dynamodb": "^3.632.0",
"@aws-sdk/smithy-client": "^3.374.0",
"@dvsa/cvs-microservice-common": "^1.2.4",
"@dvsa/cvs-type-definitions": "^9.0.0",
"@smithy/smithy-client": "^2.5.1",
"@smithy/util-utf8": "^2.3.0",
"aws-lambda": "^1.0.7",
"aws-xray-sdk": "^3.3.4",
"joi": "^17.12.1",
"js-yaml": "^3.14.1",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"moment-timezone": "^0.5.40",
"node-yaml": "^4.0.1",
"path-parser": "^4.2.0",
"reflect-metadata": "^0.1.13"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
}
}