Saving yourself from yourself

In notebook:
FrontEndMasters Creating an Open Source JavaScript Library on Github
Created at:
2017-07-18
Updated:
2017-07-18
Tags:
libraries JavaScript testing

##Githooks

Run the tests before you commit.

it's in the ./.git directory in the project. There, you have to create a ./.git/hooks dir. If you don't have one, but normally you should. The setup script removed it in Kent's lib. It contains a bunch of scripts based on git events.

The git hooks are never commited to source control. To get around this, he uses ghooks.

npm i -D ghooks npm-run-all