Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 2.05 KB

contributing.md

File metadata and controls

36 lines (24 loc) · 2.05 KB

Contribution guide

Important: before participating in our community, please read our code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

Please refer to the Amity contribution guide

Writing code

What You'll Need

  1. A bug or feature you want to work on!
  2. A GitHub account.
  3. A copy of our Ui-Kit. See the next steps for instructions.
  4. Node, which runs JavaScript locally. Current or LTS will both work.
  5. An editor.

Get Started

  1. Install node using the version you downloaded from nodejs.org.
  2. Open a terminal.
  3. Make a fork—your own copy—of our Ui-Kit on your GitHub account, then make a clone—a local copy—on your computer. (Here are some step-by-step instructions).
  4. Change to the folder you made while cloning your local copy: cd AmityUiKitWeb-OpenSource
  5. Install dependencies: npm ci
  6. Make sure everything builds and tests pass: npm run storybook
  7. Open your working folder in your editor.
  8. Follow the directions below to add and debug a test.

Storybook

Storybook is a web application which provides a safe and independent environment to build isolated, testable components and user journey.

In the context of Ui-Kit, we use it in development phase to deploy faster, QA phase to test in isolated context, and production phase as documentation and show-case tool.

How to work with Storybook

When creating a component, simply create a Component.stories.js file containing your storybook stories. More on how to write stories here. We have installed the plugins controls and actions, so make sure you use them wisely.