Skip to content

Commit

Permalink
w/ shellcheck dev & prod
Browse files Browse the repository at this point in the history
  • Loading branch information
stanistan committed Jun 29, 2024
1 parent 3ff27a9 commit 319956a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion bin/shellcheck
9 changes: 5 additions & 4 deletions dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash -euo pipefail
#!/bin/bash
set -euo pipefail

cd "$(dirname ${BASH_SOURCE})"
cd "$(dirname "${BASH_SOURCE[@]}")"

if [ $# -eq 0 ]; then
trap 'trap " " SIGTERM; kill 0; wait' SIGINT SIGTERM
Expand All @@ -12,8 +13,8 @@ fi

case "$1" in
go)
exec env $(cat .env | xargs) go run github.com/cespare/reflex \
-d none -s -- go run ./cmd/veun serve
# shellcheck disable=SC2046,SC2002
exec env $(cat .env | xargs) go run github.com/cespare/reflex -d none -s -- go run ./cmd/veun serve
;;
tailwind)
exec bun run tailwindcss -i static/input.css -o static/styles.dev.css -w
Expand Down
5 changes: 4 additions & 1 deletion prod
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash -euo pipefail
#!/bin/bash
set -euo pipefail

bun run tailwindcss -i cmd/veun/static/input.css -o cmd/veun/static/styles.css --minify

# shellcheck disable=SC2046,SC2002
exec env $(cat .env | xargs) go run ./cmd/veun serve --environment=prod

0 comments on commit 319956a

Please sign in to comment.