Recommendations and requirements for how to best contribute to react-vega. As always, thanks for contributing, and we hope these guidelines make it easier and shed some light on our approach and processes.
master
is the latest released version
lerna is used to manage versions and dependencies between packages in this monorepo.
Each package can inherit settings from project root and override its own build config, linting, and testing via beemo. You run all commands from root of the project except storybook.
react-vega/
lerna.json
package.json
...
packages/
package1/
package.json
...
src/
test/
...
lib/
esm/
...
...
cd packages/react-vega-demo
yarn storybook
Run this command to test once.
yarn test
Or run this command to test and retest when files are changed.
yarn test:watch
yarn lint
# or this one if you want eslint to fix automatically when possible.
yarn lint:fix
This repository follows
conventional commits guideline for commit
messages and has a commitlint
hook which will require you to have the valid commit message before
committing.
You can use yarn commit
to help you create a commit message.
Prerequisite: You'll need an npmjs.com account and given write access to
react-vega
and react-vega-lite
.
- Make sure you're logged in to NPM from your shell. Run
npm login
if necessary. - To make the release, run
yarn release
and follow the prompts.
This is done automatically if you use yarn release
.
yarn postrelease
By contributing your code, you agree to license your contributions under the terms of the Apache-2.0 license