Skip to content

Latest commit

 

History

History
105 lines (67 loc) · 3.81 KB

CONTRIBUTING.md

File metadata and controls

105 lines (67 loc) · 3.81 KB

Contributing to Vee-Validate

First of all, thanks for taking interest into contributing to this repository, below is what you need to know about the project.

Getting Started

Fork the repository, or clone it:

git clone https://github.com/logaretm/vee-validate.git

Install dependencies using yarn

yarn

Issues

When creating issues, please provide as much details as possible. A clear explanation on the issue and a reliable production example can help us greatly in improving this project. Your issue may get closed if it cannot be easily reproduced so please provide a working example using either Codesandbox or jsfiddle. Your example should only focus on the issue, minimal and clearly produces the issue.

If your issue gets closed for not providing enough info or not responding to the maintainers' comments, do not consider it a hostile action. There are probably other issues that the maintainers are working on and must give priority to issues that are well investigated, you can always revisit the issue and address the reasons that it was closed and we will be happy to re-open it and address it properly. Sometimes a commit will close your issue without a response from the maintainers so make sure you read the issue timeline to prevent any misunderstandings.

Code Style

The code style is enforced with eslint and prettier and is checked automatically whenever you commit. Any violation of the code style may prevent merging your contribution so make sure you follow it. And yes we love our semi-colons.

Commit Style

Commit messages are enforced with commitlint which is configured to help you write a suitable commit message, the checks are run automatically when you commit.

Contributing To The Docs

If you want to contribute to the docs you can find it in the docs folder.

The docs are using Nuxt and nuxt/content module, the content itself is present in docs/content as markdown files.

To run the documentation locally:

yarn docs:dev
# or
npm run docs:dev

Pull Requests

Before you open a PR, make sure to communicate via issues about your intent to avoid PRing something you think is an issue when it might be a design choice. This is a checklist of the stuff you need to be aware of:

  • Make sure you fill the PR template provided
  • PRs should have titles that are clear as possible
  • Make sure that your PR is up to date with the branch you are targeting, use git rebase for this
  • Unfinished/In-Progress PRs should be marked as a draft
  • Make sure to mention which issues are being fixed by the PR so they can be closed properly
  • Make sure to preview all pending PRs to make sure your work won't conflict with other ongoing pull-request
  • Coordinate with ongoing conflicting PRs' authors to make it easier to merge both your PRs

Source Code

Currently we are using TypeScript for the codebase, feel free to use any of it's features with a minor exception to:

  • Enums as we prefer to use string literals instead.
  • namespace not needed in our codebase

Testing

Each test file represents a unit test to the corresponding file in the src folder.

To run the tests:

yarn test
# or
npm run test

To check the tests coverage:

yarn cover
# or
npm run cover

Mono repo

this project uses mono-repo style using lerna.

Building

Use this command to build all project bundles

yarn build
# or
npm run build

Tips for Testing your changes

If you need to try out your changes, here is a few tips

  • Build vee-validate dist files once you are done with your changes
  • To use the built files you can either use npm link and link vee-validate dist files to your project, or use yalc (recommended)