Vue-cli: Can not use husky hooks

Created on 4 May 2018  路  6Comments  路  Source: vuejs/vue-cli

Version

3.0.0-beta.6

Steps to reproduce

vue create project
cd project
yarn add husky

Test hooks


It could be nice to document that @vue/cli-service is using yorkie for some lint, and a guide to add custom hooks

Most helpful comment

@yyx990803
I agree with the comment above.
P.s. Husky is supporting a project in a subdirectory, but Yorkie doesn't.

All 6 comments

Yeah, yorkie does the same thing with husky. Use "gitHooks" instead of "husky", and use dash delimited hook names.

I did use yorkie at the end (note that the next version of husky does kinda the same as yorkie - moving from scripts to husky, pre-commit instead of precommit)
The thing is, I had to check in my .git/hooks/pre-commit, then yarn why yorkie to find out.

It would be cool to have a line in the documentation :)

Yeah, the docs is still WIP, we will have lots of things to add when we reach RC.

can there be an update to move Vue-CLI to support Husky? i noticed Yorkie has not been updated since late 2018

@yyx990803
I agree with the comment above.
P.s. Husky is supporting a project in a subdirectory, but Yorkie doesn't.

@yyx990803
I agree with the comment above.
P.s. Husky is supporting a project in a subdirectory, but Yorkie doesn't.

Agreed. Also missing subdirectory project support.

Was this page helpful?
0 / 5 - 0 ratings