We're glad you want to contribute!
You can use the command yarn watch
to test the VTEX Toolbelt locally. It creates a symlink named vtex-test
, with which you can test your code as you develop.
To be able to use it you'll have to add $HOME/.vtex/dev/bin
to your PATH
environment variable. This may differ across different OSs, but follow this steps:
- Open the
~/.bashrc
file (or the correponding shell configuration file). - On the end of the file, add the line:
export PATH=$PATH:$HOME/.vtex/dev/bin
. - Save it.
- Run the command
source ~/.bashrc
(or corresponding file).
That's it! Now you're able to run yarn watch
and, on another terminal session, use the command vtex-test
as an alias to what you're developing.
The VTEX CLI uses Ocliff under the hood, making it very easy to add or improve commands. Follow this guide to learn how to develop on this project.
We adhere to a strict pull request review workflow. Please refrain from committing any "serious" changes directly to master. Small fixes are ok. ;)
- Create a branch from master. (e.g.
git checkout -b feature/super-awesome-thing
) - Submit a Pull Request.
- Wait for comments from reviewers, discuss and fix any issues.
- Wait for a 🌟 LGTM 🌟.
- Merge to master, delete your branch and release to npm.
Please do not leave any unpublished code in master!