-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
92 lines (92 loc) · 3.63 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
{
"name": "cvs-svc-activities",
"version": "1.0.0",
"description": "A template application containing boilerplate code for writing CVS microservices.",
"main": "handler.js",
"engines": {
"node": "18.*",
"npm": "9.*"
},
"scripts": {
"start": "BRANCH=local AWS_XRAY_CONTEXT_MISSING=LOG_ERROR serverless offline start --noPrependStageInUrl",
"build": "node_modules/typescript/bin/tsc --rootDir ./ --outDir .build --sourceMap false && npm run build:copy",
"build:dev": "node_modules/typescript/bin/tsc && 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\"",
"test": "npm run coverage",
"coverage": "npm run test:unit -- --runInBand --coverage",
"test-i": "npm run test:integration -- --globalSetup='./scripts/setUp.ts' --globalTeardown='./scripts/tearDown.ts'",
"test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand",
"prepush": "npm run coverage && npm run build && npm run test-i",
"security-checks": "git secrets --scan",
"lint": "tslint --fix src/**/*.ts tests/**/*.ts",
"format": "prettier --write .",
"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 && rm package.json package-lock.json && zip -qr ../${ZIP_NAME}.zip .",
"tools-setup": "sls dynamodb install && husky install",
"pre-commit": "npm run security-checks && npm run audit && npm run lint && npm run format",
"pre-push": "npm run prepush"
},
"author": "",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.632.0",
"@aws-sdk/lib-dynamodb": "^3.632.0",
"@dvsa/cvs-type-definitions": "7.4.0",
"@smithy/smithy-client": "^2.5.0",
"aws-lambda": "^1.0.7",
"aws-xray-sdk": "^3.6.0",
"date-fns": "^2.29.3",
"joi": "17.13.3",
"moment": "2.29.4",
"node-yaml": "4.0.1",
"path-parser": "^6.1.0",
"reflect-metadata": "^0.1.13",
"ts-node-register": "^1.0.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.119",
"@types/babel__traverse": "7.0.4",
"@types/express": "4.17.2",
"@types/express-serve-static-core": "4.17.20",
"@types/jest": "^24.0.21",
"@types/jest-plugin-context": "^2.9.2",
"@types/joi": "^17.2.3",
"@types/lambda-tester": "^3.6.0",
"@types/lodash": "4.14.121",
"@types/node": "^14.18.16",
"@types/superagent": "^4.1.15",
"@types/supertest": "^2.0.8",
"@types/uuid": "^3.4.6",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"aws-sdk-client-mock": "^4.0.0",
"husky": "7.0.4",
"jest": "^29.4.3",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"lambda-tester": "^4.0.1",
"prettier": "^2.8.4",
"serverless": "3.28.1",
"serverless-dynamodb": "0.2.45",
"serverless-offline": "^13.3.4",
"serverless-plugin-tracing": "2.0.0",
"serverless-plugin-typescript": "2.1.4",
"sonarqube-scanner": "3.3.0",
"source-map-support": "^0.5.21",
"supertest": "^6.3.3",
"swagger-jsdoc": "^6.2.8",
"ts-jest": "^29.0.5",
"ts-node-dev": "2.0.0",
"tslint": "^6.1.0",
"tslint-jsdoc-rules": "^0.2.0",
"typescript": "^4.9.5"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
}
}