Meteor Maxims- Chapter 1: Husky and the Git Precommit Hook

Loading...
I walk through the first step forward in ensuring consistent developer experiences, setting up a git precommit hook to monitor code style. I use husky, the node package for managing git hooks.

I talk briefly about using package.json to do this instead of  gulp or grunt. Here are a couple of articles talking about this decision:
https://www.keithcirkel.co.uk/why-we-should-stop-using-grunt/
https://medium.freecodecamp.com/why-i-left-gulp-and-grunt-for-npm-scripts-3d6853dd22b8#.73bycnhfy

Some links about husky and git hooks:
http://elijahmanor.com/npm-precommit-scripts/
https://github.com/typicode/husky

Associated commits:
https://github.com/knathanieltucker/deeds/commit/5e7249a9d130ccddd69622c5c247d29a62f55965 
Git Hooks

Git Hooks

Git Hooks


Prettier using Pre-Commit Hooks

Prettier using Pre-Commit Hooks

Prettier using Pre-Commit Hooks


Git Hooks Tutorial - Auto Deploy on Push

Git Hooks Tutorial - Auto Deploy on Push

Git Hooks Tutorial - Auto Deploy on Push


What are Git hooks? [Intermediate Git Tutorial]

What are Git hooks? [Intermediate Git Tutorial]

What are Git hooks? [Intermediate Git Tutorial]


Linting Sass, Javascript y Precommit Rules

Linting Sass, Javascript y Precommit Rules

Linting Sass, Javascript y Precommit Rules


Creating a Git post-commit hook file

Creating a Git post-commit hook file

Creating a Git post-commit hook file


Server Side Git Installation for Deploying our Laravel App

Server Side Git Installation for Deploying our Laravel App

Server Side Git Installation for Deploying our Laravel App


Setting Up ESLint

Setting Up ESLint

Setting Up ESLint


Git deploy to staging server using post-receive hook

Git deploy to staging server using post-receive hook

Git deploy to staging server using post-receive hook