forked from gaggle-net/technical-assessment-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
47 lines (47 loc) · 2.08 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
{
"name": "node",
"version": "1.0.0",
"description": "",
"engines": {
"node": ">=18.17.1"
},
"scripts": {
"test": "npm run test:mean && npm run test:median && npm run test:mode npm run test:auth && npm run test:infra",
"test:mode": "jest --testPathPattern=software/ModeFunction",
"test:mean": "cd software/MeanFunction && mvn test",
"test:median": "cd software/MedianFunction && mvn test",
"test:infra": "cd infrastructure && mvn test",
"test:auth": "jest --testPathPattern=software/AuthorizerFunction",
"bootstrap": "cd infrastructure && cdk bootstrap",
"build": "npm run build:common && npm run test && npm run synth",
"build:common": "cd software/Utils && mvn install",
"synth": "cd infrastructure && cdk synth",
"invoke:mode": "sam local invoke -t ./infrastructure/cdk.out/StatisticsApiStack.template.json ModeFunction -e ./software/ModeFunction/event.json",
"invoke:mean": "sam local invoke -t ./infrastructure/cdk.out/StatisticsApiStack.template.json MeanFunction -e ./software/MeanFunction/event.json",
"invoke:median": "sam local invoke -t ./infrastructure/cdk.out/StatisticsApiStack.template.json MedianFunction -e ./software/MedianFunction/event.json",
"start-api": "sam local start-api -t ./infrastructure/cdk.out/StatisticsApiStack.template.json",
"deploy": "cd infrastructure && cdk deploy --require-approval never",
"test:integration": "jest --testPathPattern=integration-tests/",
"destroy": "cd infrastructure && cdk destroy",
"clean": "sudo rm -rf software/MedianFunction/target/ && sudo rm -rf software/MeanFunction/target/"
},
"author": "",
"license": "ISC",
"devDependencies": {
"@types/aws-lambda": "^8.10.119",
"@types/decimal.js": "^7.4.0",
"@types/jest": "^29.5.3",
"aws-cdk": "^2.91.0",
"aws-sdk": "^2.1436.0",
"aws-sdk-client-mock": "^2.0.0",
"axios": "^1.4.0",
"maven": "^5.0.0",
"ts-jest": "^29.1.1"
},
"dependencies": {
"@middy/core": "^4.6.0",
"@middy/http-json-body-parser": "^4.6.0",
"decimal.js": "^10.4.3",
"json-schema-to-ts": "^2.9.2"
}
}