Make git hook installation optional/controlled
See original GitHub issueWhat 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:
- Created 4 years ago
- Reactions:9
- Comments:6
Top 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 >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
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.