diff --git a/.gitignore b/.gitignore index cae3d3d4b..c32901afa 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,9 @@ yarn-error.log # testing /coverage +# ESLint cache for faster incremental lints +.eslintcache + # Bun bun.lockb dist diff --git a/Makefile b/Makefile index 7c1beb3b8..b9267dfe8 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,8 @@ # make test - Run tests # # Parallelism: -# Use make -jN to run independent tasks concurrently (e.g., make -j4 build) +# Runs in parallel by default for faster builds. Use -j1 for sequential execution. +# Individual targets can opt out with .NOTPARALLEL if needed. # # Backwards Compatibility: # All commands also work via `bun run` (e.g., `bun run dev` calls `make dev`) @@ -23,6 +24,11 @@ # Branches reduce reproducibility - builds should fail fast with clear errors # if dependencies are missing, not silently fall back to different behavior. +# Enable parallel execution by default (only if user didn't specify -j) +ifeq (,$(filter -j%,$(MAKEFLAGS))) +MAKEFLAGS += -j +endif + # Include formatting rules include fmt.mk diff --git a/scripts/lint.sh b/scripts/lint.sh index 12bb096ba..3fa7d5953 100755 --- a/scripts/lint.sh +++ b/scripts/lint.sh @@ -26,9 +26,9 @@ ESLINT_PATTERN='src/**/*.{ts,tsx}' if [ "$1" = "--fix" ]; then echo "Running bun x eslint with --fix..." - bun x eslint "$ESLINT_PATTERN" --fix + bun x eslint --cache "$ESLINT_PATTERN" --fix else echo "Running eslint..." - bun x eslint "$ESLINT_PATTERN" + bun x eslint --cache "$ESLINT_PATTERN" echo "ESLint checks passed!" fi