-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Implement pre-commit hook with Husky to ensure project builds
Description
Currently, there's no automated check before commits to ensure that the project builds successfully. This can lead to issues like the missing tags problem (issue #23) being pushed to the repository.
Proposed Solution
Implement a pre-commit hook using Husky that:
- Runs a build of the project before allowing a commit
- Prevents commits if the build fails or produces warnings
- Provides clear feedback to the developer about what needs to be fixed
Implementation Details
- Use Husky for Git hooks management
- Configure a pre-commit hook to run
npm run build - Optionally add lint-staged for more efficient checks on staged files
- Add appropriate documentation in the README about the pre-commit hook
Benefits
- Prevents broken builds from being committed
- Catches issues like missing tags early in the development process
- Ensures consistent code quality across the project
- Saves time by identifying issues before they're pushed to the repository
Priority
Medium - This is an enhancement to the development workflow that will prevent future issues.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request