Это видео недоступно.
Сожалеем об этом.
Git Project Setup with Husky, Conventional Commits, and branching strategies.
HTML-код
- Опубликовано: 15 авг 2024
- Git Project Setup
In this video, I will help walkthrough how to properly set up a git project using some best practices such as Husky, Conventional Commits, and explain the main branching strategies.
Tutorial Github project: github.com/leo...
MonoRepo repository: github.com/leo...
Conventional commits: www.convention...
Husky npm: www.npmjs.com/...
Commitizen: commitizen-too...
Git kracken: www.gitkraken....
Timestamps
0:00 Intro
1:05 Clone project
2:10 Husky install
7:15 pre-commit hook
11:00 lint-staged
14:40 Conventional Commits
16:04 commit-msg hook
18:40 Install commitizen
21:20 git-flow branching strategy
24:25 github-flow branching strategy
27:20 gitlab-flow branching strategy
#DISCLAIMER!!
For the mono repo setup of husky, I install the husky directory for v6 in a subfolder. In this example I use git-husky-setup but you can use something like a .config folder to store these custom script commits
Also, this will make it so that the husky scripts defined within the .husky directory to be executed no matter what sub repo you are working in. Meaning changes in next-ts-frontend will execute the .husky pre-commit script from git-husky-setup
The way to fix this so that only the packages with changes are executed is to use a library called Lerna
www.npmjs.com/package/lerna
I haven't had the time to set this up yet but plan on it to learn here in a bit. Just wanted to let you know just in case.
i'd like to see a monorepo video setup w/ *Husky* + *PNPM Workspaces*
Impressive stuff and you read my mind, i was looking for something along similar lines. Thanks
Really good video. I have learned a lot!!!
very informative. I would really appriciete if you can make a detailed video about eslint and prettier configuration along with testing
Really good video. I have learned a lot!!! thanks for sharing your knowledge
Thank you man) You helped me a lot!
praise: Great job.🤗
Very good video
nice video, mate
thanks a lot!
Really helpful
Thank you so much brother!!!!
thank you, subscribed!
great tutorial :)
Should I add the underscore folder to ,y git repository?
eidt, prob not sicne the gitignore * in there
Question: After initiating husky, should we checkin/push the created .husky-folder also into the git repository, so other teammembers dont have to init husky again?
Yes if you want those hooks to be standard for your repo than they should be committed
Can I use husky - hooks for my python projects !! If no kindly suggest alternatives !
Best
where can I find the code base that you pasted in 'commit-msg' husky file? thank you!
there is one video on your adds, but very util info
my precommit does not run when committing
Thankssss
Great setup! If I may ask, what is that extension that's showing like "You 4 days ago | 1 author (You)"?
I think its gitlens
Great video, few things i noticed when i tried to replicate the commitizen tool in my workspace with yarn
1. zsh: command not found: cz (when typing just cz)
2. zsh: command not found: git-cz (when typing just git-cz)
3. git: 'cz' is not a git command. See 'git --help' (when typing git cz)
But it works when i type
yarn git-cz
How to fix these?
Thanks!!
you can add a new script in the package.json "cz": "git-cz" so you can use as yarn cz. Another options is to install commitizen globally.
How did you deal with nvmrc?
Guys… please for the love of everything don’t use a linter for formatting 🤣🤣😓😓