https://github.com/moisesnetouou/automating-code-patterns
:package: Automated code patterns with Husky.
https://github.com/moisesnetouou/automating-code-patterns
commitizen commitlint husky react typescript vite vitest
Last synced: about 2 months ago
JSON representation
:package: Automated code patterns with Husky.
- Host: GitHub
- URL: https://github.com/moisesnetouou/automating-code-patterns
- Owner: moisesnetouou
- Created: 2022-09-05T23:01:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T02:11:09.000Z (over 3 years ago)
- Last Synced: 2025-08-18T11:13:15.142Z (10 months ago)
- Topics: commitizen, commitlint, husky, react, typescript, vite, vitest
- Language: TypeScript
- Homepage:
- Size: 375 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ✨ What was used in this project:
- [React](https://reactjs.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [Vite](https://vitejs.dev)
- [Husky](https://typicode.github.io/husky/#/)
- [Commitlint](https://commitlint.js.org/#/)
- [Lint-staged](https://github.com/okonet/lint-staged)
- [Commitzen](http://commitizen.github.io/cz-cli/)
- [Eslint](https://eslint.org/)
- [Prettier](https://prettier.io/)
- [Vitest](https://vitest.dev)
- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro)
## ✨ How to start the project
### Install dependencies:
```bash
yarn
```
With that, the dependencies will be installed, and the husky will have prepared its scripts, if the husky is not working, run this:
```bash
yarn prepare
```
### After modifying some file, and using git add .
```bash
yarn commit
```
With that, the whole process will execute in order, the commit, the steps to check the eslint and the tests, and finally, if everything passes, it will return a success message and just need to use the:
```bash
git push
```
Note: You can use this same configuration in your project, if you try to commit to my repository, I think it will return an error.