Development Workflow
pmilla1606 opened this issue · comments
Thanks for this awesome lib!
I want to contribute and add some things; before I go too far, what does your dev workflow look like? Running npm run dev
generates some builds in the dist
folder.
It might be worth adding a dev server to quickly iterate while working. In the meantime though, I'd love to know how you work/iterate on this.
Hi @pmilla1606, thank you for your interest!
Currently I'm using yarn link
to symlink the package folder to the project that consumes the library (for example /demo
). After running yarn dev
, the dev server from your consumer library (/demo
) should react to changes from /src
.
Here is my workflow, step by step:
- from
/
yarn link
- from the consumer library (
/demo
)yarn link "cp-react-tree-table"
- from
/
yarn dev # Starts rollup with the watch flag (rebuilds the bundle '/dist' when its source files change on disk)
- from the consumer library (
/demo
)yarn start # Starts the development server, will automatically reload for changes inside the consumer library ('/demo') or for changes inside simlinked libraries
@constantin-p excellent. thank you!