mirror of
https://github.com/walkinglabs/learn-harness-engineering.git
synced 2026-09-19 05:06:27 +08:00
e38d69701e
Translate all remaining English placeholder content across ar, de, es, fr, ja, ko, ru, uz, vi, zh, zh-TW locales. Includes lecture index files, code examples, templates, references, and skills docs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
664 B
Bash
Executable File
30 lines
664 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$ROOT_DIR"
|
|
|
|
# Replace these commands with the correct commands for your repository.
|
|
INSTALL_CMD=(npm install)
|
|
VERIFY_CMD=(npm test)
|
|
START_CMD=(npm run dev)
|
|
|
|
echo "==> Working directory: $PWD"
|
|
echo "==> Syncing dependencies"
|
|
"${INSTALL_CMD[@]}"
|
|
|
|
echo "==> Running baseline verification"
|
|
"${VERIFY_CMD[@]}"
|
|
|
|
echo "==> Startup command"
|
|
printf ' %q' "${START_CMD[@]}"
|
|
printf '\n'
|
|
|
|
if [ "${RUN_START_COMMAND:-0}" = "1" ]; then
|
|
echo "==> Starting the app"
|
|
exec "${START_CMD[@]}"
|
|
fi
|
|
|
|
echo "Set RUN_START_COMMAND=1 if you want init.sh to launch the app directly."
|