prehoox
v1.0.4
Published
Library for running pre-commit hooks
Downloads
14
Readme
PreHoox
A lightweight, configuration-driven pre-commit hooks manager for Node.js projects. PreHoox allows you to define pre-commit hooks directly in your package.json and automatically sets up Git hooks to run them.
Installation
Install PreHoox globally or as a dev dependency:
# Global installation
npm install -g prehoox
# Local installation (recommended)
npm install --save-dev prehooxQuick Start
Install PreHoox in your project:
npm install --save-dev prehooxConfigure hooks in your
package.json:{ "prehoox": { "hooks": { "pre-commit": [ "npm run lint", "npm run test", "npm run build" ] } } }Initialize the hooks in your Git repository:
npx prehoox initCommit your changes - PreHoox will automatically run your hooks!
