# Panda - Treelab Panda Web Components

[![action](https://github.com/treelab/treelab-panda-v3/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/treelab/treelab-panda-v3/actions/workflows/npm-publish.yml)
[![npm version](https://badge.fury.io/js/%40treelab%2Fpanda.svg)](https://www.npmjs.com/package/@treelab/panda)

Panda is a Treelab Component Library.

## Development

### Setup

1. Clone repository.
1. Run `yarn install` to install all dependencies.
1. Run `yarn storybook` to start local storybook server and start working on components.

### Linking `treelab-panda-v3` directly from `treelab-client`

First build panda

1. `cd path/to/treelab-panda-v3`
1. `yarn build`

Then link panda into `treelab-client`

1. `cd path/to/treelab-panda-v3`
1. `yarn link`
1. `cd path/to/treelab-client`
1. `yarn link @treelab/panda`

Restart `treelab-client` in order for the linked panda package to be properly included in the build.

## Testing

Currently we don't do any automated/unit testing.

## Publishing

All published versions can be found on [npmjs.com](https://www.npmjs.com/package/@treelab/panda)

Latest code can be built and published as an npm package using the [Create new release and publish to npm](https://github.com/treelab/treelab-panda-v3/actions/workflows/npm-publish.yml) GitHub action. Please carefully choose a [semantic version](https://docs.npmjs.com/about-semantic-versioning) when executing `Run workflow` such that it is higher than the previous version published.
