Skip to content

Latest commit

 

History

History
75 lines (50 loc) · 1.87 KB

CONTRIBUTING.md

File metadata and controls

75 lines (50 loc) · 1.87 KB

Contributing

Getting Started

This project uses

  • Lerna to manage multiple libs
  • Babel for building components
  • Next for a blazing fast Docs website.

Before doing anything else, run these commands:

git clone [email protected]:timelessco/chakra-components.git

cd chakra-components

yarn boot    # To install deps, bootstrap lerna
             # And link the local packages.

yarn docs    # To start the docs development server

Root Repo Scripts:

yarn clean                  # to clean the repo of all hidden files
                            # node_modules, .next & etc.,

yarn install                # to install all the project deps

yarn bootstrap              # bootstraps lerna so all dependencies get
                            # linked for cross-component development

yarn build                  # build the component library

yarn docs                   # runs the documentation site locally

yarn commit                 # to commit the stagged files

yarn contributors:add       # add yourself as a contributors
                            # usage https://allcontributors.org/docs/en/cli/usage

yarn contributors:generate  # generate allcontributors to readme

HMR support in development

Install yarn add -g nodemon and run nodemon --exec "yarn build" --watch packages/chakra-components/src --ignore dist/

OR

Start the development server with yarn docs.

Install Save and Run extension in VSCode.

Add the below setting to your vscode settings

  "saveAndRun": {
    "commands": [
      {
        "match": "/packages/chakra-components/src",
        "cmd": "yarn build",
        "silent": true
      },
    ]
  },

Make changes to your components, save & the docs site udpates to the latest change.