-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
97 lines (97 loc) · 3.47 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
{
"name": "cvs-svc-technical-records",
"version": "1.0.0",
"description": "",
"main": "src/handler.ts",
"repository": {
"type": "git",
"url": "https://github.com/dvsa/cvs-svc-technical-records.git"
},
"engines": {
"node": "14.*",
"npm": "6.13.4"
},
"scripts": {
"start": "BRANCH=local serverless offline start",
"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 jest --testMatch=\"**/*.unitTest.ts\" --runInBand",
"test": "npm run test:unit -- --coverage",
"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 .",
"test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand",
"test-i": "npm run test:integration -- --globalSetup='./scripts/setup.ts' --globalTeardown='./scripts/teardown.ts'",
"prepush": "npm t && npm run build && npm run test-i",
"security-checks": "git secrets --scan",
"lint": "tslint src/**/*.ts tests/**/*.ts",
"sonar-scanner": "sonar-scanner",
"audit": "npm audit --prod",
"tools-setup": "node_modules/.bin/sls dynamodb install",
"postinstall": "patch-package"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@types/hapi__joi": "^16.0.6",
"@types/jest": "^24.0.25",
"@types/jest-plugin-context": "^2.9.2",
"@types/lambda-tester": "^3.6.1",
"@types/lodash": "^4.14.149",
"@types/node": "^12.12.24",
"@types/sinon": "^7.5.1",
"@types/supertest": "^2.0.8",
"@types/uuid": "^3.4.6",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"husky": "^3.1.0",
"jest": "^26.1.0",
"jest-cucumber": "^3.0.0",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"lambda-tester": "^4.0.1",
"patch-package": "^6.5.1",
"serverless": "^2.45.2",
"serverless-dynamodb-local": "^0.2.40",
"serverless-offline": "^5.12.1",
"serverless-openapi-documentation": "^0.4.0",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^1.1.9",
"sonarqube-scanner": "^3.3.0",
"standard": "^12.0.1",
"supertest": "^4.0.2",
"ts-jest": "^26.1.1",
"ts-node": "^8.5.4",
"tslint": "^5.20.1",
"typescript": "3.7.4"
},
"dependencies": {
"@hapi/joi": "^16.1.8",
"@hapi/joi-date": "^2.0.1",
"aws-sdk": "^2.600.0",
"aws-xray-sdk": "^3.3.4",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"node-yaml": "^4.0.1",
"path-parser": "^4.2.0",
"reflect-metadata": "^0.1.13",
"uuid": "^3.3.3"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
},
"jest": {
"coverageDirectory": "./coverage",
"collectCoverage": true,
"testResultsProcessor": "jest-sonar-reporter",
"testURL": "http://localhost"
},
"husky": {
"hooks": {
"commitlint": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run security-checks && npm run audit && npm run lint",
"pre-push": "npm run prepush"
}
}
}