Download projects/project-01/solution/init.sh from smlflg/learn-harness-engineering: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/smlflg/learn-harness-engineering/resolve/main/projects/project-01/solution/init.sh
- Command line
-
hf download hf://smlflg/learn-harness-engineering/projects/project-01/solution/init.sh
-
curl -L -o init.sh https://huggingface.co/smlflg/learn-harness-engineering/resolve/main/projects/project-01/solution/init.sh
473 Bytes
| # init.sh -- Verify the project builds cleanly before starting work. | |
| # Run this after cloning or when resuming work. | |
| set -euo pipefail | |
| echo "=== Project 01 Init ===" | |
| echo "" | |
| echo "[1/3] Installing dependencies..." | |
| npm install | |
| echo "" | |
| echo "[2/3] Running type checks..." | |
| npm run check | |
| echo "" | |
| echo "[3/3] Building project..." | |
| npm run build | |
| echo "" | |
| echo "=== Init complete. All checks passed. ===" | |
| echo "Run 'npm run dev' to launch the application." | |