Forest- Treelab Forest Web Components
Forestis a Treelab Component Library for solutions product.
Development
Setup
- Clone repository.
- Run
pnpm install
to install all dependencies. - Run
pnpm run storybook
to start local storybook server and start working on components.
Linking treelab-panda
directly from treelab-forest
First build panda
cd path/to/treelab-panda-v3
yarn build
pnpm link --global
Then link panda into treelab-forest
cd path/to/treelab-forest
pnpm link --global @treelab/panda
Restart treelab-forest
in order for the linked forest package to be properly included in the build.
Linking treelab-forest
directly from treelab-scm
First build forest
cd path/to/treelab-forest
pnpm build
Then link forest into treelab-scm
cd path/to/treelab-forest
pnpm link --global
cd path/to/treelab-scm
pnpm link --global @treelab/forest
Restart treelab-scm
in order for the linked forest package to be properly included in the build.
Testing
pnpm test
Publishing
All published versions can be found on npmjs.com
Latest code can be built and published as an npm package using the Create new release and publish to npm GitHub action. Please carefully choose a semantic version when executing Run workflow
such that it is higher than the previous version published.