question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
leggsimoncommented, Dec 28, 2017

@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

0reactions
fregantecommented, Dec 27, 2017

Those can be usually avoided by having a live linter in your editor, like SublimeLinter-contrib-xo and SublimeLinter-contrib-stylelint

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found