Closed pmilla1606 closed 6 years ago
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:
/
yarn link
/demo
)
yarn link "cp-react-tree-table"
/
yarn dev # Starts rollup with the watch flag (rebuilds the bundle '/dist' when its source files change on disk)
/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!
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 thedist
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.