Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 2.21 KB

contributing.md

File metadata and controls

38 lines (26 loc) · 2.21 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. A fontawesome token, from a paid subscription.
  6. 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
  5. Add to your fontawesome token to your env: export NPM_FONT_AWESOME_TOKEN=<your_fontawesome_token>
  6. Install dependencies: npm ci
  7. Make sure everything builds and tests pass: npm run storybook
  8. Open your working folder in your editor.
  9. 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.