(No waiting for your build!)
pre-commit
automated commit msg
prepare-commit-msg
commit msg made
commit-msg
post-commit
pre-commit
Let's write a
hook!
const add2 = number => number + 2;
const add3 = number => number + 3;
module.exports = { add2, add3 };
const addNum = num => {
const add = number => number + num;
return add;
}
const add2 = addNum(2);
const add3 = addNum(3);
module.exports = { add2, add3 };
#!/bin/sh
echo "\Running tests:\n"
npm run test
thatpersonfromthething.com