From 419904fb3c5d871c4741b289a1d3bae9c98843af Mon Sep 17 00:00:00 2001 From: sepia Date: Thu, 24 Jul 2025 15:08:35 -0500 Subject: [PATCH] Clean up justfile --- .pre-commit-config.yaml | 9 +++++++++ justfile | 19 ------------------- 2 files changed, 9 insertions(+), 19 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..89d2580 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +repos: + - repo: local + hooks: + - id: just-format + name: just format + entry: just format + language: system + types: [file] + files: "\\.(ts|tsx|js|jsx|json|css|scss|html|md)$" \ No newline at end of file diff --git a/justfile b/justfile index 2fdcc84..59867d6 100644 --- a/justfile +++ b/justfile @@ -1,40 +1,21 @@ -# justfile for Elysia project - -# Install dependencies install: bun install -# Run the development server dev: bun run --watch src/index.ts -# Build the project build: bun build --compile --minify --target bun --outfile server ./src/index.ts -# Run tests test: bun test check: bunx tsc --noEmit --skipLibCheck -# Lint the project -lint: - # Add your lint command here, for example: - # bun run lint - echo "Linting not configured yet" - -# Clean the project clean: rm -rf node_modules rm -rf dist -# Format the code format: bun run prettier . --write - -# Bump version -bump-version: - # Add your version bump command here - echo "Version bump not configured yet"