-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
72 lines (72 loc) · 2.83 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
{
"name": "cvs-tsk-retro-gen-init",
"version": "0.0.1",
"description": "Certificate generation initiation task",
"main": "handler.js",
"engines": {
"node": "18.*",
"npm": "8.*"
},
"scripts": {
"start": "serverless invoke local -f main --path tests/resources/stream-event.json",
"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\" \\) | 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",
"prepush": "npm test && npm run build && npm run test-i",
"security-checks": "git secrets --scan && git log -p | scanrepo",
"test:unit": "BRANCH=local SLS_DEBUG=* AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --testMatch=\"**/*.unitTest.ts\" --runInBand --detectOpenHandles --forceExit",
"test": "npm run test:unit -- --coverage",
"test-i": "echo 'nothing to do'",
"lint": "tslint src/**/*.ts tests/**/*.ts --fix",
"format": "prettier --write .",
"sonar-scanner": "npm run test && 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": "echo 'nothing to do'"
},
"author": "",
"license": "ISC",
"dependencies": {
"aws-lambda": "^1.0.5",
"aws-sdk": "^2.585.0",
"aws-xray-sdk": "^3.3.4",
"node-yaml": "^3.2.0",
"reflect-metadata": "^0.1.13"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@types/aws-lambda": "^8.10.36",
"@types/jest": "^24.0.23",
"@types/jest-plugin-context": "^2.9.2",
"@types/node": "^10.17.6",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"husky": "^3.1.0",
"jest": "^29.6.4",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"prettier": "^2.3.2",
"serverless": "^2.45.0",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^1.1.9",
"ts-jest": "^29.1.1",
"ts-node-register": "^1.0.0",
"tslint": "^5.20.1",
"typescript": "4.4.4"
},
"jestSonar": {
"reportPath": "coverage",
"reportFile": "test-report.xml",
"indent": 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"
}
}
}