I want to be enable "run git hooks" before commit, I know its possible since i enabled it once (in one project, depicted below)
but i cant remember / figure out how to do this in another project
can you please help?
thanks
Back then i couldn't find it, but later on i did, so just wanted to share it with you guys.
The following package will do it for you pre-commit
Its amazingly simple, just install it:
npm install pre-commit --save-dev
and add this to your package.json
{
"pre-commit": ["test", "build"],
}
and you're golden
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With