Add Git hooks
See original GitHub issueI often forget to run npm run build
after checking out a PR branch. Would be useful to set up some shared Git hooks for running npm install
and npm run build
on Git changes, like updated master or other checked out branches.
Maybe using https://github.com/typicode/husky
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Git Hooks - Git SCM
To enable a hook script, put a file in the hooks subdirectory of your .git directory that is named appropriately (without any extension)...
Read more >Get Started with Git Hooks - Medium
Implementing Git Hooks · 1. Navigate to the hooks directory · 2. Install your hook · 3. Select a language to write your...
Read more >Git Hooks | Atlassian Git Tutorial
Git Hooks are scripts that run automatically every time a particular event occurs in a Git repository. Learn what they do and how...
Read more >Git hooks: How to automate actions in your Git repo - Red Hat
Git hooks are shell scripts found in the hidden .git/hooks directory of a Git repository. These scripts trigger actions in response to specific ......
Read more >Git Hooks | Learn how to use pre-commit hooks, post-commit ...
Every Git repository has a .git/hooks folder with a script for each hook you can bind to. You're free to change or update...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bfred-it True but IMO I don’t think it’s reasonable to ask any contributors to add extensions to their editor of choice. I don’t use xo for anything else so I haven’t got an extension for it
Those can be usually avoided by having a live linter in your editor, like SublimeLinter-contrib-xo and SublimeLinter-contrib-stylelint