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.

Make git hook installation optional/controlled

See original GitHub issue

What problem does this feature solve?

per: https://cli.vuejs.org/guide/cli-service.html#git-hooks

when running npm ci or npm install it also force instals placeholders for all git hooks, which each looks for your packages.json file to see if there are any rules specified. This slows down git actions taken… even if you have no rules specified.

Can we somehow skip this step optionally? or opt into the use of yorkie?

Currently to resolve this I have to the run rm -fr .git/hooks/* any time I do an install.

What does the proposed API look like?

Perhaps install yorkie as a top level package and surface a vue create --no-git-hooks my-project option to not add the package which in turn won’t install the git hooks.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:9
  • Comments:6

github_iconTop GitHub Comments

6reactions
e-cloudcommented, May 19, 2019

Since husky has been updated with a lot of changes, yorkie may not be worthy to apply anymore.

1reaction
P-Seebauercommented, Aug 30, 2019

Since husky has been updated with a lot of changes, yorkie may not be worthy to apply anymore.

But the same goes for husky, it still installs the hooks if set as a dependency. So this issue would still arise.

Read more comments on GitHub >

github_iconTop Results From Across the Web

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 >
githooks Documentation - Git
This hook is invoked by git-merge[1], and can be bypassed with the --no-verify option. It takes no parameters, and is invoked after the...
Read more >
Can Git hook scripts be managed along with the repository?
A cooler option is to add just one script to rule them all, instead of several ones. So, you create a hooks/mysuperhook.go file...
Read more >
Pre-Commit Hook Example in GitKraken Client | Git Hooks ...
First navigate to the hooks directory for the target repo. Open a Visual Studio Code window and navigate to repo .git hooks. From...
Read more >
pre-commit
Run pre-commit install to install pre-commit into your git hooks. pre-commit will now run on every commit. Every time you clone a project...
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