Utilities
Helper scripts to keep the repo tidy, build-ready, and easy to demo. Core helpers now live under utilities/scripts/ and are safe to run from the repo root.
Scripts
format.sh
- Purpose: Run
dotnet formatacross the solution. - Usage:
./utilities/format.sh./utilities/format.sh --verify-no-changes --severity info
- Notes: Passes flags through to
dotnet format. Use in CI to verify style.
format-build.sh
- Purpose: Fix whitespace, run style/analyzer formatters, build the solution, and execute frontend package tests.
- Usage:
./utilities/scripts/format-build.sh - Steps:
- Normalizes
.csfiles and runsdotnet format whitespace. dotnet format styleanddotnet format analyzers.dotnet build Webstir.sln -v minimal.
- Normalizes
- Installs frontend dependencies (
pnpm installby default) and runs the package tests. - Tip: Use before committing or when CI fails style checks.
deploy-seed.sh
- Purpose: Create, build, test, and publish a seed project for demos and the Sandbox.
- Usage:
./utilities/scripts/deploy-seed.sh - Output directories:
- Seed root:
CLI/out/seed - Build artifacts:
CLI/out/seed/build - Dist artifacts:
CLI/out/seed/dist
- Seed root:
- Behavior:
inita fresh seed atCLI/out/seed(replaces if exists).buildwith the CLI.test; if tests pass,publish.
- Works with: Docker Sandbox setup mounting the seed paths.
Prerequisites
- .NET SDK installed (
dotnet --info). - Repo restored and buildable.
- For Sandbox usage of
deploy-seed.sh, Docker/Compose installed.
Tips
- Run from the repo root to ensure relative paths resolve correctly.
- Add
format.sh --verify-no-changesto CI to enforce style. - If a formatter fails unexpectedly, rerun
./utilities/scripts/format-build.shto normalize whitespace beforeformat.sh.