We are open to and grateful for any contributions made by the community.
After cloning the repository first install the dependencies:
# Yarn
yarn install
# NPM
npm install
After the installation has completed you can run the local development environment:
# Yarn
yarn dev
# NPM
npm run dev
If you want to test your changes in another project, use
npm link
or
yarn link
.
If you prefer to work within Storybook, we have that set up aswell.
To launch the Storybook development environment run:
# Yarn
yarn storybook
# NPM
npm run storybook
We are working on integrating Storybook with the chayns environment, however many APIs are not available there yet. Some components that rely on the chayns-js API might not work within Storybook.
If you found a bug or miss a feature, you are welcome to create a pull request and add the desired features yourself. Follow these steps:
- Fork this repository
- Do your changes and commit them
- Create a pull request from your fork to the master branch of this repository
Please avoid including unrelated commits to your pull request.
The following is only relevant for core contributors (members of the TobitSoftware GitHub organization).
To publish a new version of the chayns-components
-package simply push a new
Git-tag to the repository.
npm version
will create a tag automatically, so use this command to increase
the version and push the created tag to publish a new version to npm.