Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.66 KB

CONTRIBUTING.md

File metadata and controls

46 lines (26 loc) · 1.66 KB

Contributing to Karbon

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub.

Please join our Slack channel if you have any questions or just want to say hi.

Project setup

Prerequisites

For hacking on Karbon you'll need to have Node.js and npm and Github CLI installed.

Quick and dirty setup

gh clone storipress/karbon

This will clone the karbon repository to your current working directory.

I already cloned it!

If you cloned it somewhere else, you'll want to use yarn install within the package directory to get dependencies.

Workflow

To start hacking:

  1. enter packages/playground directory
  2. copy .env.example to .env
  3. run yarn postinstall to prepare dev environment
  4. setup .env under the packages/playground with your Storipress credentials
  5. run yarn dev from the package directory to start the playground

Cut a branch while you're working then either submit a Pull Request when done or when you want some feedback!

Running specs

To run tests on the command line use yarn test within the package directory.

We use Vitest for writing specs.

Typescript

We use Tyepscript for type checking. Before you make a pull request, you should solve any type errors. If you have an error you can't fix after taking a crack at it, feel free to open your PR anyway and ask for help there.