Skip to content

Commit 581cdd0

Browse files
Merge pull request #47 from antstackio/dev
fix: changed tsconfig to strict
2 parents 85d76ba + 55b2bc5 commit 581cdd0

File tree

1 file changed

+4
-89
lines changed

1 file changed

+4
-89
lines changed

bin/index.ts

Lines changed: 4 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -16,92 +16,7 @@ let stack_resource_Name: any = [];
1616
let AppType;
1717
let template:AnyObject = {};
1818
let config;
19-
let testdata={
20-
"app_name": "teststruct",
21-
"language": "node",
22-
"Stacks": {
23-
"BaseModuleRlbao": "BaseModule",
24-
"BaseModuleKogle": "BaseModule",
25-
"EmailAuthModulePsaih": "EmailAuthModule",
26-
"EmailAuthModuleWjzvl": "EmailAuthModule",
27-
"RDSModuleLzxxx": "RDSModule",
28-
"RDSModuleCnxwn": "RDSModule",
29-
"CRUDModuleVuayw": "CRUDModule",
30-
"CRUDModuleWwaex": "CRUDModule"
31-
},
32-
"StackParams": {
33-
"BaseModuleRlbao": {},
34-
"BaseModuleKogle": {},
35-
"EmailAuthModulePsaih": {},
36-
"EmailAuthModuleWjzvl": {},
37-
"RDSModuleLzxxx": {},
38-
"RDSModuleCnxwn": {},
39-
"CRUDModuleVuayw": {
40-
"Book": {
41-
"path": "/book",
42-
"methods": [
43-
"put",
44-
"get",
45-
"post",
46-
"delete",
47-
"options"
48-
],
49-
"resourcetype": "lambda"
50-
},
51-
"Author": {
52-
"path": "/author",
53-
"methods": [
54-
"put",
55-
"get",
56-
"post",
57-
"delete",
58-
"options"
59-
],
60-
"resourcetype": "lambda"
61-
}
62-
},
63-
"CRUDModuleWwaex": {
64-
"Book": {
65-
"path": "/Book",
66-
"methods": [
67-
"put",
68-
"get",
69-
"post",
70-
"delete",
71-
"options"
72-
],
73-
"resourcetype": "lambda"
74-
},
75-
"Author": {
76-
"path": "/author",
77-
"methods": [
78-
"put",
79-
"get",
80-
"post",
81-
"delete",
82-
"options"
83-
],
84-
"resourcetype": "lambda"
85-
}
86-
}
87-
},
88-
"CustomStacks": {
89-
"custom": [
90-
"S3 Lambda",
91-
"CRUD API",
92-
"S3 Bucket",
93-
"Lambda",
94-
"DynamoDB"
95-
],
96-
"custo": [
97-
"S3 Lambda",
98-
"CRUD API",
99-
"S3 Bucket",
100-
"Lambda",
101-
"DynamoDB"
102-
]
103-
}
104-
}
19+
10520
async function roverADD() {
10621
let app_name = await util.inputString("app_name", "", false, "App Name");
10722
await rover_utilities.samValidate(app_name["app_name"]);
@@ -188,7 +103,7 @@ async function listProfiles() {
188103
return profiles
189104
}
190105
async function run(argv: AnyObject) {
191-
//rover_utilities.generateSAM(testdata);
106+
192107
try {
193108
if (rover_utilities.npmrootTest()) {
194109
const commandError = `rover ${argv.join(
@@ -208,8 +123,8 @@ async function run(argv: AnyObject) {
208123
let language = await util.languageChoice();
209124

210125
template = await createModules(app_name, language)
211-
console.log(JSON.stringify(template))
212-
//await rover_utilities.generateSAM({ template }["template"]);
126+
127+
await rover_utilities.generateSAM({ template }["template"]);
213128

214129
} else if (editedSam === "add components to existing SAM") {
215130

0 commit comments

Comments
 (0)