From b3848c35ee6afeb8b2ad3da45db3112e3cff626e Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Tue, 7 Oct 2025 20:30:12 -0700 Subject: [PATCH] pre-commit hook --- .githooks/pre-commit | 4 ++++ README.md | 3 ++- public/bundle.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 .githooks/pre-commit diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..2fedda8 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh + +bun run check || exit 1 +bun run build || exit 1 \ No newline at end of file diff --git a/README.md b/README.md index 89862e5..45c9fc6 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ 3. From the root of this repo, run: - bun remote:install` + bun remote:install 4. When it's done (it'll reboot) visit: @@ -24,6 +24,7 @@ And to make sure DNS is working: Running the server will create `~/nose` for you to play with. + git config core.hooksPath .githooks bun install bun dev open localhost:3000 diff --git a/public/bundle.js b/public/bundle.js index 60c6a56..a5e256c 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -1,5 +1,5 @@ //// -// version: ea5b33c +// version: 178711c // src/js/dom.ts var content2 = $("content");