@treelab/gallery-view
v0.4.18
Published
Gallery View component library for Treelab Client
Downloads
5
Keywords
Readme
Treelab Gallery View
Gallery View component library for Treelab Client. Component preview is available on https://treelab.github.io/treelab-gallery-view.
Structure
All of the components are located in src folder.
Development
Setup
A locally running storybook instance is used to showcase all the components and reload whenever underlying code changes.
git clone <this repo>
yarn install
yarn storybook
Linking to this package directly from treelab-client
First build this project
cd ..../treelab-gallery-view
yarn build
Then link into treelab-client
cd ..../treelab-gallery-view
yarn link
cd ..../treelab-client
yarn link @treelab/gallery-view
Restart treelab-client
in order for the linked package to be properly included in the build.
Testing
jest and @testing-library/react are used for unit testing.
Test can be run using the yarn test
command.
Publishing
Code can be published using the usual npm publish process:
npm publish