constantin-p / cp-react-tree-table

A fast, efficient tree table component for ReactJS.

Home Page:https://constantin.software/cp-react-tree-table

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Development Workflow

pmilla1606 opened this issue · comments

commented

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:

  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
commented

@constantin-p excellent. thank you!