Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/haraldrudell/react-rollup

Build react app using Rollup by Harald Rudell
https://github.com/haraldrudell/react-rollup

Last synced: 1 day ago
JSON representation

Build react app using Rollup by Harald Rudell

Awesome Lists containing this project

README

        

# React-Rollup

The React build pipeline ported to [Rollup](https://rollupjs.org)

[click for **Video presentation**, 10 min](https://youtu.be/KVaOVjiH2SQ)

Used by [lib-create-react-app](https://github.com/haraldrudell/lib-create-react-app)

## © 2018-present Harald Rudell (http://www.haraldrudell.com)

### Usage

This project mainly supports lib-create-react-app

It does provide a rollup preset for React that allows for transpiling a React app with css into distributable files

**yarn add --dev react-rollup**

In rollup.config.js:

import rollupPresetReact from 'react-rollup'



export default {input, output, external, plugins: rollupPresetReact(options)}

options:

* **jail**: for rollup-plugin-resolve
* **assetsPath**: directory to where assets like fonts are copied

### Components
* [react-rollup](https://github.com/haraldrudell/react-rollup.git) the [Create React App](https://github.com/facebook/create-react-app) build pipeline ported to [Rollup](https://rollupjs.org)
* [lib-create-react-app](https://github.com/haraldrudell/lib-create-react-app) that adapts, builds and publishes a React project to npm
* [es2049package](https://github.com/haraldrudell/ECMAScript2049/tree/master/workspace/packages/es2049package) a configuration-free bundler for CommonJS and ECMAScript modules

### Example Project
* [demo-context-store](https://github.com/haraldrudell/demo-context-store.git) a single-truth store in 94% less code lines

## link: [Hire Harald Rudell](https://hire.surge.sh/)

## link: [Sponsor Harald Rudell](https://www.gofundme.com/san-francisco-revenge-crime-victim/)

**[Lib Create React App](https://github.com/haraldrudell/lib-create-react-app)** creates shareable libraries from projects bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## © 2018-present Harald Rudell (http://www.haraldrudell.com)