Skip to content
GitLab
Explore
Sign in
Register
Framasoft
Etherpad
ep_mypads
Wiki
Pre commit git hook
Pre commit git hook
· Changes
Page history
luc created page: Pre commit git hook
authored
Apr 20, 2018
by
Luc Didry
Hide whitespace changes
Inline
Side-by-side
Pre-commit-git-hook.md
0 → 100644
View page @
d7884088
Here's a good pre-commit git hook that you can put in
`.git/hooks/pre-commit`
(don't forget to make it executable):
```
#!/bin/sh
npm run lint
&&
\
npm run frontend:build
&&
\
npm run
test
&&
\
npm run test-ldap
```