A react-hook-form resolver for nestjs-zod schemas
npm install nestjs-zod-hookform-resolver
✨ A react-hook-form resolver for nestjs-zod schemas ✨
The README on main branch may contain some unreleased changes.
Go to release/latest branch to see the actual README for the latest version from NPM.
- Installation
- Contrubuting
- Maintenance
- Regular flow
- Prerelease from
- Conventions
NPM:
``sh`
npm install nestjs-zod-hookform-resolver
Yarn:
`sh`
yarn add nestjs-zod-hookform-resolver
1. Fork this repo
2. Use the Regular flow
Please follow Conventions
The dev branch is main - any developer changes is merged in there.
Also, there is a release/latest branch. It always contains the actual source code for release published with latest tag.
All changes is made using Pull Requests - push is forbidden. PR can be merged only after successfull test-and-build workflow checks.
When PR is merged, release-drafter workflow creates/updates a draft release. The changelog is built from the merged branch scope (feat, fix, etc) and PR title. When release is ready - we publish the draft.
Then, the release workflow handles everything:
- It runs tests, builds a package, and publishes it
- It synchronizes released tag with release/latest branch
1. Create feature branch
2. Make changes in your feature branch and commit
3. Create a Pull Request from your feature branch to main BREAKING CHANGES
The PR is needed to test the code before pushing to release branch
4. If your PR contains breaking changes, don't forget to put a labelmain
5. Merge the PR in
6. All done! Now you have a drafted release - just publish it when ready
1. Assume your prerelease tag is betarelease/beta
2. Create branchrelease/beta
3. Create feature branch
4. Make changes in your feature branch and commit
5. Create a Pull Request from your feature branch to v1.0.0-beta
The PR is needed to test the code before pushing to release branch
6. Create Github release with tag like , pointing to release/beta branch beta
For next versions use semver build syntax: v1.0.0-beta+1release
7. After that, the workflow will publish your package with the beta tagbeta
8. When the version is ready to become latest - create a Pull Request from release/beta to main branch
9. Continue from the Regular flow's #5 step
Feature branches:
- Should start with feat/, fix/, docs/, refactor/, and etc., depending on the changes you want to propose (see pr-labeler.yml for a full list of scopes)
Commits:
- Should follow the Conventional Commits specification
- You can find supported types and scopes into .cz-config.js`
Pull requests:
- Should have human-readable name, for example: "Add a TODO list feature"
- Should describe changes
- Should have correct labels (handled by PR Labeler in most cases)