Clone this repository and install its dependencies:
git clone https://github.com/testacode/rollup-component-library-example.git
cd rollup-component-library-example
npm install
npm run dev
builds the library, then keeps rebuilding it whenever the source files change using rollup-watch.