-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
102 lines (102 loc) · 3.85 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
{
"name": "cvs-svc-test-types",
"version": "1.0.0",
"description": "Microservice that stores and serves the test types data",
"main": "handler.js",
"repository": {
"type": "git",
"url": "https://github.com/dvsa/cvs-svc-test-types.git"
},
"engines": {
"node": "18.*",
"npm": "9.*"
},
"scripts": {
"start": "BRANCH=local SLS_DEBUG=* serverless offline start --noPrependStageInUrl",
"build-start": "npm run build && npm run start",
"debug": "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": "npm run test:unit -- --coverage",
"test:unit": "BRANCH=local SLS_DEBUG=* AWS_XRAY_CONTEXT_MISSING=LOG_ERROR jest --testMatch=\"**/*.unitTest.ts\" --runInBand",
"test:integration": "BRANCH=local jest --testMatch=\"**/*.intTest.ts\" --runInBand --detectOpenHandles",
"test-i": "AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 npm run test:integration -- --globalSetup='./scripts/setup.ts' --globalTeardown='./scripts/teardown.ts'",
"prepush": "npm run test && npm run build && npm run test-i",
"security-checks": "git secrets --scan",
"lint": "tslint src/**/*.ts tests/**/*.ts -q",
"format": "prettier --write .",
"sonar-scanner": "sonar-scanner",
"audit": "npm audit --omit=dev",
"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"
},
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"@babel/preset-typescript": "^7.6.0",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@types/jest": "^25.2.1",
"@types/jest-plugin-context": "^2.9.2",
"@types/joi": "^14.3.3",
"@types/lambda-tester": "^3.6.1",
"@types/lodash": "^4.14.142",
"@types/node": "^12.11.2",
"@types/request": "^2.48.1",
"@types/supertest": "^2.0.8",
"audit-filter": "^0.5.0",
"aws-lambda-mock-context": "^3.2.1",
"aws-sdk-client-mock": "^4.0.0",
"babel-jest": "^25.1.0",
"husky": "^3.0.8",
"jest": "^26.6.3",
"jest-cucumber": "^2.0.11",
"jest-plugin-context": "^2.9.0",
"jest-sonar-reporter": "^2.0.0",
"lambda-tester": "^4.0.1",
"lodash": "^4.17.21",
"prettier": "^2.3.2",
"serverless": "^3.28.1",
"serverless-offline": "13.3.4",
"serverless-plugin-tracing": "^2.0.0",
"serverless-plugin-typescript": "^2.1.4",
"sonar-scanner": "^3.1.0",
"standard": "^14.3.1",
"supertest": "4.0.2",
"ts-jest": "^26.1.1",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"tslint-jsdoc-rules": "^0.2.0",
"typescript": "^4.0.0"
},
"dependencies": {
"@aws-sdk/lib-dynamodb": "^3.549.0",
"aws-xray-sdk": "^3.3.4",
"joi": "^17.12.1",
"node-yaml": "^4.0.1",
"path-parser": "^4.2.0",
"reflect-metadata": "^0.1.13",
"serverless-dynamodb": "^0.2.50",
"tar": "^7.0.1"
},
"jestSonar": {
"reportPath": ".reports",
"reportFile": "test-report.xml",
"indent": 4
},
"jest": {
"coverageDirectory": "./coverage",
"collectCoverage": true,
"testResultsProcessor": "jest-sonar-reporter",
"testURL": "http://localhost"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run audit && npm run security-checks && npm run lint && npm run format",
"pre-push": "npm run prepush"
}
}
}