-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.projenrc.js
66 lines (59 loc) · 1.3 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
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
const { cdk } = require("projen");
const project = new cdk.JsiiProject({
author: "hupe1980",
defaultReleaseBranch: "main",
name: "cdktg",
description: "Agile Threat Modeling as Code",
keywords: [
"threagile",
"cdk",
"threat modeling",
"stride",
"devsecops",
"appsec",
"constructs",
],
vscode: true,
repositoryUrl: "https://github.com/hupe1980/cdk-threagile.git",
license: "MIT",
copyrightOwner: "Frank Hübner",
prettier: true,
depsUpgrade: false,
peerDeps: ["constructs"],
bundledDeps: [
"axios",
"yaml",
"yargs",
"ts-node",
"execa@^5",
"fs-extra",
"form-data",
"adm-zip",
"dotenv",
"which",
],
devDeps: [
"@types/fs-extra",
"@types/adm-zip",
"@types/which",
"constructs",
"json-schema-to-typescript",
"@openapitools/openapi-generator-cli",
],
publishToPypi: {
distName: "cdktg",
module: "cdktg",
},
publishToGo: {
moduleName: "github.com/hupe1980/cdk-threagile-go",
},
});
project.setScript(
"specgen",
"json2ts threagile/schema.json > src/spec/threatgile.generated.ts"
);
project.setScript(
"apigen",
"openapi-generator-cli generate -i threagile/openapi.yaml -g typescript-axios -o src/api/generated --additional-properties=withNodeImports=true"
);
project.synth();