constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.
https://constantin.software/cp-react-tree-table
MIT License
95 stars 27 forks source link

Development Workflow #1

Closed pmilla1606 closed 6 years ago

pmilla1606 commented 6 years ago

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.

constantin-p commented 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:

  1. from /
    • yarn link
  2. from the consumer library (/demo)
    • yarn link "cp-react-tree-table"
  3. from /
    • yarn dev # Starts rollup with the watch flag (rebuilds the bundle '/dist' when its source files change on disk)
  4. 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
pmilla1606 commented 6 years ago

@constantin-p excellent. thank you!