Into to Rollup#
rollup-starter-app#
Two folders: src (where the code sits) and public - HTML that includes bundle.js
rollup.config.js explains how to buil
npm run dev provides a live update
rollup-guide#
- Entry point for application - main.js
- imports etc - bundle.js
Uses ES Modules, not commonJS. But commonJS can be used through plugin
Tutorial#
Create the project folder, including src.
Create the entry point - main.js in src - including a supporting library
At that stage, they start running rollup manually
rollup-start-app applied to pathway planner#
- Add and perhaps modify rollup.config.js
- use PathWayPlanner.js for entry point
- Update package.json and perhaps .gitignore
- add public folder
- Copy index.html from src to public
- Can taffydb be installed via npm?
- Update when and how the pathway-planner.css is imported
- Install all the stuff that's included
- lit-element, lodash, accordion-container-component, navigo
- npm run build
- npm run start