diff --git a/README.md b/README.md index f606d18..5907f3b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Converts bash scripts (`*.sh`) to windows batch files (`*.bat`). This is _not_ supposed to be a fully complete/correct tool, but rather a starting point when converting scripts. For simple scripts this might create correct results. +Try it online: https://daniel-sc.github.io/bash-shell-to-bat-converter/ + ## Usage Setup: ```sh diff --git a/src/convert-bash.ts b/src/convert-bash.ts index a8f268d..6a5b07d 100644 --- a/src/convert-bash.ts +++ b/src/convert-bash.ts @@ -1,5 +1,5 @@ // @ts-ignore -process = {env: {NODE_NEV: 'mock'}}; // patch for irrelevant node dependency of bash-parser +window.process = {env: {NODE_NEV: 'mock'}}; // patch for irrelevant node dependency of bash-parser import parse from 'bash-parser' function changePath(path: string) { diff --git a/ui/angular.json b/ui/angular.json index ae0311a..c0254d8 100644 --- a/ui/angular.json +++ b/ui/angular.json @@ -123,7 +123,9 @@ }, "deploy": { "builder": "angular-cli-ghpages:deploy", - "options": {} + "options": { + "baseHref": "/bash-shell-to-bat-converter/" + } } } } diff --git a/ui/src/app/app.component.html b/ui/src/app/app.component.html index a8eccd0..9282d06 100644 --- a/ui/src/app/app.component.html +++ b/ui/src/app/app.component.html @@ -1,3 +1,5 @@ +

Bash to Bat Converter

+
Bash Script diff --git a/ui/src/app/app.component.scss b/ui/src/app/app.component.scss index 84582b4..c7dc294 100644 --- a/ui/src/app/app.component.scss +++ b/ui/src/app/app.component.scss @@ -1,4 +1,6 @@ - +h1 { + margin-left: 10px; +} .container { width: 100%; display: flex;