Skip to content

Commit f1cb471

Browse files
committed
fix: enabled importing JSON in tsconfig
1 parent bb2e7cd commit f1cb471

File tree

5 files changed

+448
-68
lines changed

5 files changed

+448
-68
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ![Create a sample project](./assets/roverForBright.png)Overview
22

3-
Rover is a npm package or CLI-based that generates or updates SAM projects based on predefined modules and components. it also helps in deployment by generating CI/CD pipeline or deploy through CLI in few clicks.
3+
Rover is CLI tool that generates/updates SAM projects based on predefined modules and components. It helps in deployment by generating CI/CD pipeline or deploy through CLI in few clicks.
44

55
Modules are the small functional unit of the project like Email Authentication. Components are combination of AWS services like Lambda with S3 as Trigger.
66

@@ -17,8 +17,6 @@ It is a CLI-based library that supports Node and Python with a some AWS Services
1717
* Python 3
1818
* AWS SAM CLI
1919

20-
21-
2220
In Rover, we have predefined modules, we can select them and create our project or we have options to create custom modules by selecting the components in that module.
2321

2422
# Usage
@@ -31,29 +29,29 @@ $ rover init
3129
2) add components to existing SAM
3230
3) add modules to existing SAM
3331
```
32+
3433
#### Deploy
34+
3535
```sh
36-
$ rover deploy
36+
$ rover deploy
3737
1) generate pipeline
3838
2) cli
3939
3) repository and pipeline
4040

4141
```
42-
**Note**: update and deploy should be done within the SAM project
4342

43+
**Note**: update and deploy should be done within the SAM project
4444

4545
# Features of Rover
46+
4647
###### Creates new SAM project with predefined Modules and Components
4748

4849
###### Adds Components and Modules to Existing SAM
4950

50-
51-
###### Generates CI/CD Pipeline in SAM projects
52-
51+
###### Generates CI/CD Pipeline in SAM projects
5352

5453
###### Deploys SAM project through CLI
5554

56-
5755
# Keywords
5856

5957
Rover, Lambda, S3, CLI , CI/CD Pipeline, SAM Projects

bin/index.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,23 @@ const deployment= require("@rover-tools/engine").rover_deployment;
77
import * as buildConfig from "../cli-main/buildConfig";
88
import { AnyObject } from "immer/dist/internal";
99
const exec = require("child_process").execSync;
10-
10+
import { version } from "../package.json";
1111
let res: any = [];
1212
let resources: any = [];
1313
let stack_resource_Name: any = [];
1414
let AppType;
1515
let template = {};
1616
let config;
17+
let appname
1718
async function run(argv:AnyObject) {
1819
try{
20+
console.log(version)
1921
if(rover_utilities.npmrootTest()){
2022
if (argv[0] === "init") {
2123
let editedSam = await util.confirmation();
2224
if (editedSam === "create new SAM project") {
2325
let app_name:object = await util.inputString("app_name","",false, "App Name:");
26+
appname=app_name["app_name"]
2427
await rover_utilities.checkFile(app_name["app_name"],"no")
2528
let language = await util.languageChoice();
2629
let stack_names: any = {};
@@ -188,7 +191,8 @@ async function run(argv:AnyObject) {
188191
console.log("Note: install @rover-tools/cli globally (install @rover-tools/cli -g)")
189192
}
190193
}catch (error) {
191-
console.log("Error: ",error.message)
194+
exec("rm -rf "+appname)
195+
console.log("Error: ",error)
192196

193197
}
194198
}

0 commit comments

Comments
 (0)