Skip to content

Commit

Permalink
chore: add run scripts to launch examples
Browse files Browse the repository at this point in the history
adds scripts to run each example as intended
  • Loading branch information
BobyMCbobs committed Dec 19, 2023
1 parent 661ed13 commit 94eb0a9
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/headers-vuejs/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

FOLDER="$(dirname "$(realpath "$0")")"
cd "$(git rev-parse --show-toplevel)"

export APP_SERVE_FOLDER="$FOLDER/folder" \
APP_HEADER_SET_ENABLE=true \
APP_HEADER_MAP_PATH="$FOLDER/headers.yaml" \
APP_TEMPLATE_MAP_PATH="$FOLDER/template-map.yaml" \
APP_VUEJS_HISTORY_MODE=true
go run .
File renamed without changes.
9 changes: 9 additions & 0 deletions examples/headers/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

FOLDER="$(dirname "$(realpath "$0")")"
cd "$(git rev-parse --show-toplevel)"

export APP_SERVE_FOLDER="$FOLDER/folder" \
APP_HEADER_SET_ENABLE=true \
APP_HEADER_MAP_PATH="$FOLDER/headers.yaml"
go run .
7 changes: 7 additions & 0 deletions examples/standard/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

FOLDER="$(dirname "$(realpath "$0")")"
cd "$(git rev-parse --show-toplevel)"

export APP_SERVE_FOLDER="$FOLDER/folder"
go run .
9 changes: 9 additions & 0 deletions examples/vuejs/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

FOLDER="$(dirname "$(realpath "$0")")"
cd "$(git rev-parse --show-toplevel)"

export APP_SERVE_FOLDER="$FOLDER/folder" \
APP_TEMPLATE_MAP_PATH="$FOLDER/template-map.yaml" \
APP_VUEJS_HISTORY_MODE=true
go run .
File renamed without changes.

0 comments on commit 94eb0a9

Please sign in to comment.