-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
124 lines (124 loc) · 4.52 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
{
"name": "cvs-tsk-cert-gen",
"version": "0.0.1",
"description": "Certificate generation initiation task",
"main": "handler.js",
"engines": {
"node": "^18.15.0"
},
"scripts": {
"start:debug": "npm run kill:offline && tsc && SLS_DEBUG=* sls offline start",
"sqs:invoke-queue-event": "cat tests/resources/queue-event-debug.json | xargs -0 aws --endpoint-url=http://localhost:9324 sqs send-message-batch --queue-url http://localhost:9324/queue/cert-gen-q --entries",
"sqs:purge": "aws --endpoint-url=http://localhost:9324 sqs purge-queue --queue-url http://localhost:9324/queue/cert-gen-q",
"start": "npm run kill:offline && npm run start:offline && BRANCH=local 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": "tsc --rootDir ./ --outDir .build --sourceMap false && npm run build:copy",
"build:dev": "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\" -or -name \"*.base64\" \\) | cpio -pdm .build",
"build:docker": "docker compose -f docker-compose.yml up -d --build",
"test:unit": "BRANCH=local AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --testMatch=\"**/*.unitTest.ts\" --runInBand",
"test": "npm run test:unit -- --coveragePathIgnorePatterns='<rootDir>/tests/' --coverage",
"test-i": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand",
"lint": "biome check src",
"lint:fix": "npm run lint -- --write",
"security-checks": "git secrets --scan",
"prepush": "npm run test && npm run build && npm run test-i",
"sonar-scanner": "npm run test && sonar-scanner",
"audit": "npm audit --omit=dev",
"package": "ts-node package.ts && cd ${ZIP_NAME:-'tsk-cert-gen'}; zip -r ../${ZIP_NAME:-'tsk-cert-gen'}.zip *",
"tools-setup": "echo 'nothing to do'"
},
"nyc": {
"include": [
"src/**/*.ts",
"src/**/*.tsx"
],
"extension": [
".ts",
".tsx"
],
"require": [
"ts-node/register"
],
"reporter": [
"text-summary",
"html"
],
"sourceMap": true,
"instrument": true
},
"author": "",
"license": "ISC",
"dependencies": {
"@aws-lambda-powertools/parameters": "^2.0.2",
"@aws-sdk/client-appconfigdata": "^3.564.0",
"@aws-sdk/client-lambda": "^3.564.0",
"@aws-sdk/client-s3": "^3.564.0",
"@aws-sdk/client-secrets-manager": "^3.564.0",
"@dvsa/cvs-feature-flags": "^0.17.0",
"@aws-sdk/util-dynamodb": "^3.704.0",
"@dvsa/cvs-type-definitions": "^7.8.0",
"@dvsa/cvs-microservice-common": "^1.3.1",
"@smithy/types": "^2.12.0",
"@smithy/util-utf8": "^2.3.0",
"aws-lambda": "^1.0.5",
"aws-xray-sdk": "^3.6.0",
"js-yaml": "^3.14.1",
"lodash.merge": "^4.6.2",
"moment": "^2.24.0",
"node-yaml": "^4.0.1",
"reflect-metadata": "^0.1.13",
"ts-node-register": "^1.0.0",
"typedi": "^0.10.0",
"uuid": "^10.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@dvsa/biome-config": "^0.1.0",
"@types/aws-lambda": "^8.10.34",
"@types/jest": "^28.1.8",
"@types/jest-plugin-context": "^2.9.2",
"@types/lambda-tester": "^4.0.3",
"@types/lodash.merge": "^4.6.9",
"@types/node": "^12.12.5",
"@types/sinon": "^7.5.0",
"@types/uuid": "^10.0.0",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"esbuild": "0.24.0",
"esbuild-plugin-typescript-decorators": "^0.1.0",
"gulp": "^5.0.0",
"husky": "^3.0.9",
"jest": "^28.1.3",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"lambda-tester": "^4.0.1",
"prettier": "^2.3.2",
"serverless": "^3.38.0",
"serverless-offline": "^13.5.1",
"serverless-offline-sqs": "^8.0.0",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^2.1.2",
"sinon": "^7.5.0",
"sonar-scanner": "^3.1.0",
"ts-jest": "^28.0.8",
"tslint": "^5.20.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^4.9.5"
},
"jestSonar": {
"reportPath": "coverage",
"reportFile": "test-report.xml",
"indent": 4
},
"husky": {
"hooks": {
"pre-commit": "npm run security-checks && npm run audit && npm run lint",
"pre-push": "npm run prepush"
}
}
}