All Projects → transitive-bullshit → React Modern Library Boilerplate

transitive-bullshit / React Modern Library Boilerplate

Boilerplate for publishing modern React modules with Rollup

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Modern Library Boilerplate

Create React Library
⚡CLI for creating reusable react libraries.
Stars: ✭ 4,554 (+1497.89%)
Mutual labels:  rollup, create-react-app, babel, library, component, preact
React Rollup Boilerplate
Boilerplate for creating React component libraries, bundled with Rollup.js to ES6 Modules, React Styleguidist, Typescript
Stars: ✭ 157 (-44.91%)
Mutual labels:  rollup, library, boilerplate
Preact Redux Typescript Rollup Starter
Smallest "React-like" + Redux starter EVER - 13KB min&gzip
Stars: ✭ 24 (-91.58%)
Mutual labels:  rollup, boilerplate, preact
React App
Create React App with server-side code support
Stars: ✭ 614 (+115.44%)
Mutual labels:  create-react-app, babel, boilerplate
React Component Library
A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook
Stars: ✭ 313 (+9.82%)
Mutual labels:  rollup, library, component
React Redux Auth0 Kit
Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication
Stars: ✭ 115 (-59.65%)
Mutual labels:  create-react-app, babel, boilerplate
Reactprimer
React component prototyping tool that generates fully connected class component code.
Stars: ✭ 743 (+160.7%)
Mutual labels:  create-react-app, boilerplate, component
Ts Monorepo
Template for setting up a TypeScript monorepo
Stars: ✭ 459 (+61.05%)
Mutual labels:  rollup, create-react-app, babel
Babel React Rollup Starter
A simple boilerplate for web apps with React, Babel, and Rollup.
Stars: ✭ 124 (-56.49%)
Mutual labels:  rollup, babel, boilerplate
React Redux Typescript Jspm Starter
Futuristic, bundle-free, development environment for building Component-Driven SPA with React, Redux and TypeScript - powered by JSPM (SystemJS & Rollup with tree-shaking)
Stars: ✭ 238 (-16.49%)
Mutual labels:  rollup, boilerplate
vitext
The Next.js like React framework for better User & Developer experience!
Stars: ✭ 376 (+31.93%)
Mutual labels:  preact, rollup
react-component-lib
Boilerplate repo for creating npm packages with React components written in TypeScript and using styled-components
Stars: ✭ 69 (-75.79%)
Mutual labels:  create-react-app, rollup
Xdm
a modern MDX compiler. No runtime. With esbuild, Rollup, and webpack plugins
Stars: ✭ 206 (-27.72%)
Mutual labels:  rollup, babel
Vue Plugin Template
🚀 Solid foundation to start a Vue plugin with the best developer experience and a focus on performance
Stars: ✭ 189 (-33.68%)
Mutual labels:  rollup, component
Simple Php Router
Simple, fast and yet powerful PHP router that is easy to get integrated and in any project. Heavily inspired by the way Laravel handles routing, with both simplicity and expand-ability in mind.
Stars: ✭ 279 (-2.11%)
Mutual labels:  library, module
react-full-stack-starter
🎈Full-stack React boilerplate using `create-react-app`, Babel, Node.js, and express
Stars: ✭ 22 (-92.28%)
Mutual labels:  babel, create-react-app
rollup-lib-bundler
Simple lib bundler
Stars: ✭ 13 (-95.44%)
Mutual labels:  babel, rollup
Klap
zero config, zero dependency bundler for tiny javascript packages
Stars: ✭ 143 (-49.82%)
Mutual labels:  rollup, babel
stan
🔨 Collection of front-end engineering tools
Stars: ✭ 19 (-93.33%)
Mutual labels:  babel, rollup
monoreact
📦 React workspaces implementation
Stars: ✭ 13 (-95.44%)
Mutual labels:  create-react-app, rollup

react-modern-library-boilerplate

Boilerplate and CLI create-react-library for publishing modern React modules with Rollup and example usage via create-react-app.

NPM JavaScript Style Guide

Intro

Note: Modern means modern as of March, 2018.. I'm sure everything will change in a month... 😂 😂

We strongly recommend that you use the accompanying CLI create-react-library to create new modules based off of this boilerplate.

The purpose of this boilerplate is to make publishing your own React components as simple as possible.

Features

  • Easy-to-use CLI create-react-library
  • Transpiles all modern JS features
  • Bundles cjs and es module formats
  • create-react-app for example usage and local dev
  • Rollup for build process
  • Babel for transpilation
  • Jest for testing
  • Supports complicated peer-dependencies
  • Supports CSS modules
  • Sourcemap creation
  • Thorough documentation 😍

Manual Setup

If you'd prefer to setup a new module manually, check out the introductory blog post and the old manual guide.

Examples

Here is an example react module created from this boilerplate: react-background-slideshow, a sexy tiled background slideshow for React. It comes with an example create-react-app hosted on github pages.

Multiple Named Exports

Here is a branch which demonstrates how to create a module with multiple named exports. The module in this branch exports two components, Foo and Bar, and shows how to use them from the example app.

Material-UI

Here is a branch which demonstrates how to create a module that makes use of a relatively complicated peer dependency, material-ui. It shows the power of rollup-plugin-peer-deps-external which makes it a breeze to create reusable modules that include complicated material-ui subcomponents without having them bundled as a part of your module.

License

MIT © Travis Fischer

Support my OSS work by following me on twitter twitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].