Contributing
MobX state tree is a community driven project, but is looking for active maintainers! See #700
Extensive pull requests are best discussed in an issue first.
Setting up the environment:
- Clone this repository
yarn
is the package manager of choice (with workspaces support enabled). Make sure to run Node 8 or higher.- Run
yarn install
on the root. - Editor settings are optimized for VS Code, so just run
code .
in the root folder. Debugger settings are included in the project.
For mobx-state-tree
:
- Go to
packages/mobx-state-tree
and runyarn jest
to ensure all tests pass. - After updating jsdocs, better run
yarn build-docs
inpackages/mobx-state-tree
to regenerate them.
For mst-middlewares
:
- Go to
packages/mst-middlewares
and runyarn jest
to ensure all tests pass. - If your changes depend on a change in
packages/mobx-state-tree
you will need to runyarn buld
there first!
Once you think your PR is ready:
- Run on the root
yarn build
to ensure it all builds. - Run on the root
yarn test
to ensure all tests pass. - Create the PR on GitHub.
- Check the CI build passes on the PR thread in GitHub.
Have fun!