-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.projenrc.js
40 lines (36 loc) · 1.05 KB
/
.projenrc.js
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
const { AwsCdkTypeScriptApp } = require("projen");
const project = new AwsCdkTypeScriptApp({
cdkVersion: "1.88.0",
name: "blog-cdk-openapi",
authorName: "Matt Martz",
authorUrl: "https://matt.martz.codes",
cdkDependencies: [
"@aws-cdk/core",
"@aws-cdk/aws-apigateway",
"@aws-cdk/aws-lambda",
"@aws-cdk/aws-lambda-nodejs",
],
dependencies: {
"ts-json-schema-generator": "0.77.0",
},
devDependencies: {
"@types/aws-lambda": "8.10.63",
"@types/newman": "5.1.2",
"@types/postman-collection": "3.5.5",
"esbuild": "0.8.34",
"newman": "5.2.1",
"openapi-to-postmanv2": "2.2.0",
"postman-collection": "3.6.9",
},
gitignore: [
"src/newman/newman-*",
"src/newman/customized.json"
]
});
project.addScriptCommand(
"newman:convert",
"openapi2postmanv2 -s openapigenerated.json -o src/newman/api.json -p -c src/newman/config.json"
);
project.addScriptCommand("newman:pr", "ts-node src/newman/newman.ts -- 1");
project.addScriptCommand("newman:test", "ts-node src/newman/newman.ts");
project.synth();