Contributions are always welcome!
If you discover a bug or have a feature request, please create an issue on GitHub.
Pull requests are also welcome when you find a trivial bug or typo.
We use Discussions feature of GitHub as our community page.
We use English for all commit messages, code comments, issues, pull requests.
Please follow Note for Naming Rule when creating an issue or a pull request.
Here is the guide on the command options and how to develop the package.
The commands are provided as npm-scritpts, so please execute npm run { Command }
in the terminal.
Command | Summary |
---|---|
build:umd_dev | package and generate the development version of the umd file |
build:umd_prod | package and generate the production version of the umd file |
build:esm | package and generate the ECMAScript Modules (ESM) |
build:storybook | build a static storybook |
storybook | start storybook for building UI components |
test | unit test |
es-lint | eslint check |
1. Clone from GitHub repository here to local
git clone git@github.com:kintone-labs/kintone-ui-component.git
Please refer to Branch naming rule and create a new branch for development from the next version branch.
git branch <branch name>
git checkout <branch name>
This repository is a Single Repo using npm.
cd kintone-ui-component
npm ci
npm run es-lint
npm run storybook
Please refer to Pull Request naming rule.
npm run build:umd_dev
or
npm run build:umd_prod
or
npm run build:esm
Please refer to Document with Docusaurus.
You can create several other child branches to implement source code for functions/features and/or unit tests and/or user guides.
The format of the Branch Name is as follows:
{Version Number}_Title
For example:
origin/master/v1.1.0
|__origin/master/v1.1.0_Button_src
|__origin/master/v1.1.0_Button_unit_test
|__origin/master/v1.1.0_Button_docs
|__origin/master/v1.1.0_Notification_docs
|__origin/master/v1.1.0_Text_src
If you finish the implementation under the child branches, you should merge from the parent branch before creating a pull request against it.
The format of the Pull Request Title is as follows:
[Pull Request Type] Title
Pull Request types are as follows:
Type | Example |
---|---|
Bugfix | [BugFix] Fix a bug |
HotFix | [HotFix] Urgently fix something |
CS | [CS] Fix coding style |
Feature | [Feature] Write a new feature |
Update | [Update] Change a doc file |
Refactor | [Refactor] Refactor a certain function |
The format of the Issue Title is as follows:
[Issue Type] Title
Type | Example |
---|---|
BugReport | [BugReport] Found a bug about XXX |
FeatureRequest | [FeatureRequest] Suggest an idea about XXX |