Skip to content

camille-hdl/rollup-react-example

Repository files navigation

rollup-react-example

Build Status

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.

Commands

  • npm install
  • npm run workbox creates Service Workers
  • npm run build creates a production build and Service Workers
  • npm run watch starts the dev loop
  • npm run serve starts a HTTP server, then browse to http://localhost:5000
  • npm run jest runs unit tests
  • npm run cypress:open opens Cypress GUI
  • npm test runs unit tests, then builds, then launches a dev server on port 5000, then runs end-to-end tests

License

see LICENSE

@camille_hdl

Releases

No releases published

Packages

No packages published