Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
hitko31453yGit hooks are scripts which execute on various actions like push, pull, commit... These scrips are inside the .git folder so they need to be manually configured every time you or someone else clones the repository, and they might have dependencies which aren't available everywhere. Husky is a node package which can configure these scripts automatically when someone clones your repository and runs npm install. That way everyone has the same up-to-date hooks, and project owner can enforce rules like standard commit messages or stop people from committing ugly (unlinted) code.
-
It is called husky, but the icon in the documentation is for a different race. Ah the hypocrisy …
-
im reading this at quarter past midnight and I know the words are English but like...... are they words?
-
@hitko can't one include the .git/hooks directory in version control?
Apparently it's fine and just a little more cumbersome, see https://stackoverflow.com/questions...
I've nothing against husky except it feels like huge FS overhead compared to a few one-line scripts -
hitko31453y@webketje What you linked still requires everyone to do some manual work after cloning the repository to ensure hooks are active, Husky does that automatically when user installs / updates npm dependencies. And since Husky installs with other npm dependencies, you can be sure everyone will have what your hooks need to run.
-
You guys are missing the point, why tf is a library barking this isn't normal
-
hitko31453y@gcavalcante8808 That's because emojis are racist against different dog breeds. We need a petition to make breed-specific and breed-neutral dog emojis! Ree /s
Related Rants
What the fuck is this even supposed to be
rant
npm
javascript