summaryrefslogtreecommitdiff
path: root/modes/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modes/build.sh')
-rwxr-xr-xmodes/build.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/modes/build.sh b/modes/build.sh
new file mode 100755
index 0000000..1b75a05
--- /dev/null
+++ b/modes/build.sh
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+# build — run the project build pipeline
+set -euo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+# shellcheck source=base.sh
+source "$SCRIPT_DIR/base.sh"
+
+cd "$PROJECT_ROOT"
+
+# ── TODO: uncomment and configure for your build tool ────────────────────────
+
+# just
+# exec just build
+
+# make
+# exec make build
+
+# go
+# exec go build ./...
+
+# npm / yarn / pnpm
+# exec npm run build
+
+# cargo
+# exec cargo build --release
+
+echo "error: no build command configured in modes/build.sh" >&2
+exit 1