feat: Switch project tooling from npm to bun and add enhanced pre-commit
checks - Replace npm commands with bun/bunx in scripts, docs, and CI - Add enhanced pre-commit checks with parallel execution - Document pre-commit hook behavior in PRE_COMMIT_HOOKS.md - Update .gitignore/.dockerignore for bun-debug.log - Refine ESLint config for bun and Prettier integration - Add scripts/type-check-staged.sh for fast staged type checks - Improve developer workflow and code quality automation
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
# Run lint-staged for file-specific checks
|
||||
npm run pre-commit
|
||||
|
||||
echo "✅ Pre-commit checks passed!"
|
||||
|
||||
# Enhanced pre-commit checks
|
||||
# Set FAST_COMMIT=1 to skip enhanced checks and run only basic formatting
|
||||
if [ "$FAST_COMMIT" = "1" ]; then
|
||||
echo "🏃♂️ Fast commit mode - running basic checks only..."
|
||||
bun run pre-commit
|
||||
echo "✅ Basic pre-commit checks passed!"
|
||||
else
|
||||
echo "🔧 Running enhanced pre-commit checks..."
|
||||
./scripts/pre-commit-checks.sh
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user