When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners or contributors of this repository before making a change 😃. Thank you !
This package aims to support (for now) both Masonite 2.X and Masonite 3.X versions. There are two branches for each:
New features will be added to Masonite 3 in priority, I will try to maintain important features in Masonite 2.X Bug fixes will be done in both versions.
First you should configure your local environment to be able to make changes in this package.
- Fork the
https://github.com/girardinsamuel/masonite-inertia
repo. - Clone that repo into your computer:
git clone http://github.com/your-username/masonite-inertia.git
. - Run
git pull origin master
to get the latest version.
- You should create a Python virtual environment with
Python >= 3.6
. - Then install the dependencies and setup the project, in root directory with:
make init
Note:
- The package will be locally installed in your venv (with
pip install .
). Meaning that you will be able to import it from the project contained in the package as if you installed it from PyPi. - When making changes to your packages you will need to uninstall the package and reinstall it with
pip uninstall masonite-inertia && pip install .
- From there simply create:
- a feature branch
feat/my-new-feature
- a fix branch
fix/my-new-fix
- a feature branch
- Push to your origin repository:
git push origin feat/my-new-feature
- Open a pull request (PR) and follow the PR process below
- You should open an issue before making any pull requests. Not all features will be added to the package and some may be better off as another third party package. It wouldn't be good if you worked on a feature for several days and the pull request gets rejected for reasons that could have been discussed in an issue for several minutes.
- Ensure any changes are well commented and any configuration files that are added have a flagpole comment on the variables it's setting.
- Update the README.md if installation/configuration or usage has changed.
- It's better to add unit tests for the changes you made.
- The PR must pass Github CI checks. The PR can be merged in once you have a successful review from a maintainer.
- The version will be bumped by the maintainer when merging, so don't edit package version in the PR.
- To add unit tests add tests under
tests/
directory, please read about Masonite testing in the official documentation
python masonite-package pull --directory tests/integrations