Skip to content

Latest commit

 

History

History
55 lines (33 loc) · 2.15 KB

CONTRIBUTING.md

File metadata and controls

55 lines (33 loc) · 2.15 KB

This is a guide for Nulogy employees who wish to contribute to the Design System.

Installation

Prerequisites

  1. Download and install the latest LTS version of Node (12.16.3)
  2. Download and install the package manager Yarn

Cloning the repo

  1. In the directory you want to install the design system, run git clone https://github.com/nulogy/design-system/ && cd design-system
  2. Run yarn to install dependencies
  3. Run yarn build to build the components for the first time

Writing components

  • yarn start will run a storybook at localhost:9999 for local development.
  • yarn build will rebuild the package exports for production.

To generate the files needed for a new component, you can use Plop

  • Run yarn new ComponentName (make sure your name is in PascalCase)

Coding standards

Coming soon

Pull requests

  1. If you don't already have access to the Design System Collaborators team on Github, request access in #design-system
  2. Clone https://github.com/nulogy/design-system
  3. Do work on a branch and submit a PR describing the changes you've made and why you've made them
  4. Post a link to the PR in #design-system
  5. Somebody from design ops will take a look and be in touch

Note: NDS follows the Conventional Commits specification. PRs with only one commit should have the appropriate prefix (ex. 'fix:'). PRs with multiple commits should have the prefix in the PR title.

Testing

  • To run everything:
    • yarn test

Documentation

The main documentation can be found at http:https://nulogy.design. It's a static site created with GatsbyJS managed in @nulogy/docs. Our component storybook can be found at https://nulogy.github.io/design-system

Publishing documentation

Coming soon

Resources

  • #design-system