Run Git hooks in Web IDE
It is reasonably common for projects to include Git hooks to help developers make sure code is linted before making a commit, and even to lint the commit message itself. Since we'll need to install dev dependencies to run tests, we should also run commit hooks too!
Proposal
Run Git hooks in the attached runner when committing:
-
pre-commit
run after Commit is clicked after providing a commit message -
commit-msg
run after thepre-commit
hook succeeds, and if successfully, push the commit.
Links / references
- Husky https://github.com/typicode/husky makes Git hooks easy for node projects