Skip to content
An example React application using Rollup with ES modules, dynamic imports, Service Workers, and Flow.
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
cypress
public
src
.babelrc
.flowconfig
.gitignore
.travis.yml
LICENSE
README.md
cypress.json
netlify.toml
package-lock.json
package.json
rollup.config.js
serve.json
workbox-config-esm.js
workbox-config-system.js

README.md

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

You can’t perform that action at this time.