From e2123100f25ba5886342dc50e7ad1719c48a040e Mon Sep 17 00:00:00 2001 From: lex00 Date: Fri, 19 Jun 2026 10:07:20 -0600 Subject: [PATCH] chore: add justfile wrapping the npm scripts Recipes: tsc, test (+pattern arg), test-watch, build, build-action, check (mirrors CI's check job), audit (dogfood), install. Co-Authored-By: Claude Opus 4.8 --- justfile | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..82986ab --- /dev/null +++ b/justfile @@ -0,0 +1,40 @@ +# github-warden task runner. +# Run `just` (or `just --list`) to see available recipes. + +set quiet + +# List recipes +default: + @just --list + +# Type-check (no emit) +tsc: + npx tsc --noEmit + +# Run the test suite (optionally pass a path/pattern: `just test diff`) +test *args: + npx vitest run {{args}} + +# Run tests in watch mode +test-watch: + npx vitest + +# Build the CLI bundle (dist/cli.js) +build: + npm run build + +# Build the GitHub Action bundle (action/index.mjs) +build-action: + npm run build:action + +# Everything CI's `check` job runs: typecheck, tests, action bundle freshness +check: tsc test build-action + git diff --exit-code action/index.mjs + +# Dogfood: audit our own config with chant (CI's `dogfood-audit` job) +audit: + npx chant audit . --fail-on merge-worthy + +# Install dependencies (clean, lockfile-faithful) +install: + npm ci