-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
91 lines (91 loc) · 3.6 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
{
"name": "cvs-tsk-retro-gen",
"version": "0.0.1",
"description": "Retrokey Report generation",
"main": "handler.js",
"engines": {
"node": "18.*",
"npm": "8.*"
},
"scripts": {
"start": "npm run kill:offline && BRANCH=local npm run start:offline && serverless invoke local -f main --path tests/resources/queue-event.json",
"start:offline": "gulp start-serverless",
"kill:offline": "gulp kill-serverless",
"start:docker": "docker-compose -f docker-compose.yml up -d",
"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\" -or -name \"*.xlsx\" \\) | cpio -pdm .build && find tests -type f \\( -name \"*.yml\" -or -name \"*.json\" \\) | cpio -pdm .build",
"build:docker": "docker-compose -f docker-compose.yml up -d --build",
"security-checks": "git secrets --scan && git log -p | scanrepo",
"test": "npm run test:unit -- --coverage",
"test:unit": "BRANCH=local SLS_DEBUG=* jest --testMatch=\"**/*.unitTest.ts\" --runInBand --detectOpenHandles",
"test-i": "echo 'nothing to do'",
"lint": "tslint src/**/*.ts tests/**/*.ts --fix",
"format": "prettier --write .",
"prepush": "npm test && npm run build && npm run test-i",
"sonar-scanner": "sonar-scanner",
"package": "mkdir -p ${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 .",
"audit": "npm audit --prod",
"tools-setup": "echo 'nothing to do'"
},
"author": "",
"license": "ISC",
"dependencies": {
"@aws-sdk/client-s3": "^3.540.0",
"@aws-sdk/client-secrets-manager": "^3.540.0",
"@aws-sdk/lib-storage": "^3.540.0",
"@aws-sdk/types": "^3.535.0",
"@aws-sdk/util-dynamodb": "^3.609.0",
"@dvsa/cvs-microservice-common": "^1.1.0",
"@dvsa/cvs-type-definitions": "7.2.0",
"@smithy/util-utf8": "^2.3.0",
"aws-sdk-client-mock": "^4.0.0",
"aws-xray-sdk": "^3.3.4",
"exceljs": "^4.3.0",
"js-yaml": "^3.13.1",
"moment": "^2.29.4",
"moment-timezone": "^0.5.27",
"node-yaml": "^4.0.1",
"request": "^2.88.2",
"request-promise": "^4.2.6",
"serverless-dependency-invoke": "file:./packages/serverless-dependency-invoke"
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^13.1.0",
"@types/aws-lambda": "^8.10.40",
"@types/chai": "^4.2.7",
"@types/jest": "^24.9.0",
"@types/jest-plugin-context": "^2.9.2",
"@types/js-yaml": "^3.12.1",
"@types/moment-timezone": "^0.5.12",
"@types/node": "10",
"@types/request-promise": "^4.1.45",
"@types/sinon": "^7.5.1",
"@types/lodash": "4.14.202",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"chai": "^4.2.0",
"gulp": "^5.0.0",
"husky": "^4.2.0",
"jest": "^29.7.0",
"jest-plugin-context": "^2.9.0",
"prettier": "^2.3.2",
"serverless": "^3.0.0",
"serverless-offline": "^13.0.4",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^2.1.5",
"sinon": "^8.1.1",
"sonar-scanner": "^3.1.0",
"ts-jest": "^29.1.2",
"tslint": "^5.20.1",
"typescript": "4.4.4"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run security-checks && npm run audit && npm run lint && npm run format",
"pre-push": "npm run prepush"
}
}
}