Example dev environment for React using Rollup with code splitting, ES modules, Service Workers, Babel and Flow.
This repository completes a step-by-step guide on Medium on how to setup Rollup for JavaScript development.
Sample configuration files for Travis CI and Netlify are provided.
npm install
npm run workbox
creates Service Workersnpm run build
creates a production build and Service Workersnpm run watch
starts the dev loopnpm run serve
starts a HTTP server, then browse to http://localhost:5000npm run jest
runs unit testsnpm run cypress:open
opens Cypress GUInpm test
runs unit tests, then builds, then launches a dev server on port 5000, then runs end-to-end tests
see LICENSE