🌐
GitHub
github.com › jaebradley › example-rollup-react-component-npm-package
GitHub - jaebradley/example-rollup-react-component-npm-package: Example React Component, Published to npm
Example React component "library" using rollup that is published to npm.
Starred by 177 users
Forked by 23 users
Languages   JavaScript 99.4% | CSS 0.6% | JavaScript 99.4% | CSS 0.6%
🌐
GitHub
github.com › KaiHotz › react-rollup-boilerplate
GitHub - KaiHotz/react-rollup-boilerplate: A modern, production-ready boilerplate for building React component libraries. This project provides a complete development environment with Rollup bundling, TypeScript support, Storybook for component documentation, and comprehensive testing setup.
A modern, production-ready boilerplate for building React component libraries. This project provides a complete development environment with Rollup bundling, TypeScript support, Storybook for component documentation, and comprehensive testing setup.
Starred by 312 users
Forked by 68 users
Languages   TypeScript 57.5% | JavaScript 34.7% | SCSS 7.8% | TypeScript 57.5% | JavaScript 34.7% | SCSS 7.8%
🌐
GitHub
github.com › MidoAhmed › rollup-react-library-starter
GitHub - MidoAhmed/rollup-react-library-starter: Template and quick-starter to create modern React library using Rollup. · GitHub
Template and quick-starter to create modern React library using Rollup. - MidoAhmed/rollup-react-library-starter
Starred by 50 users
Forked by 9 users
Languages   JavaScript 50.8% | TypeScript 41.8% | CSS 6.9% | SCSS 0.5%
🌐
GitHub
github.com › HarveyD › react-component-library
GitHub - HarveyD/react-component-library: A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook
A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook - GitHub - HarveyD/react-component-library: A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook
Starred by 786 users
Forked by 160 users
Languages   JavaScript 70.1% | TypeScript 23.1% | CSS 6.8% | JavaScript 70.1% | TypeScript 23.1% | CSS 6.8%
🌐
GitHub
gist.github.com › BenjaminWFox › 567fd293013090ec565b61228088087a
Basic Rollup Configuration for a React Component Library · GitHub
Basic Rollup Configuration for a React Component Library - [react-component-library] rollup.config.js
🌐
Harvey Delaney
blog.harveydelaney.com › creating-your-own-react-component-library
Creating a React Component Library using Rollup, Typescript, Sass and Storybook
November 3, 2020 - Check out util/create-component.js in my GitHub repository if you want to implement something similar. For both approaches, make sure you export your new component in index.ts otherwise it won't be picked up and bundled by Rollup. We can introduce code splitting that enables projects consuming our library to import one or a few components, instead of the whole library.
🌐
GitHub
gist.github.com › 770d8dc24c7b146f7f89b66c1ea51f6e
The rollup config for the React component library · GitHub
September 24, 2019 - The rollup config for the React component library. GitHub Gist: instantly share code, notes, and snippets.
🌐
Codefeetime
codefeetime.com › post › rollup-config-for-react-component-library-with-typescript-scss
Rollup Config for React Component Library With TypeScript + SCSS
I am just sharing the current Rollup configurations that I use to build my own React component library - Codefee-Kit, serving as a note for myself and perhaps could be of help to a few souls out there. The library is hosted on GitHub by the way - https://github.com/DriLLFreAK100/codefee-kit
🌐
GitHub
github.com › amsb › rollup-react-component-lib-example
GitHub - amsb/rollup-react-component-lib-example: A minimal example of creating a React component library with rollup.js
A minimal example of creating a React component library with rollup.js - amsb/rollup-react-component-lib-example
Author   amsb
Find elsewhere
🌐
GitHub
github.com › zhl0791 › rollup-react-library-template
GitHub - zhl0791/rollup-react-library-template: Bundle react component library with Rollup. · GitHub
Bundle react component library with Rollup. Contribute to zhl0791/rollup-react-library-template development by creating an account on GitHub.
Starred by 2 users
Forked by 2 users
Languages   JavaScript 79.8% | TypeScript 15.4% | SCSS 4.8%
🌐
Medium
hinammehra.medium.com › build-a-private-react-component-library-cra-rollup-material-ui-github-package-registry-1e14da93e790
Build a Private React Component Library (with a live playground) | Medium
September 25, 2021 - Now, to build our library, we need to install Rollup.js, Babel and other packages we require to bundle our library. ... $ cd auth-component-library$ npm i -D @babel/cli @babel/core @babel/preset-env @babel/preset-react rollup @rollup/plugin-babel rollup-plugin-delete rollup-plugin-peer-deps-external npm-run-all
🌐
Stack Overflow
stackoverflow.com › questions › 74205495 › how-do-i-configure-rollup-for-a-react-component-library
How do I configure Rollup for a React Component Library?
const { babel } = require("@rollup/plugin-babel"); ... plugins: [ resolve(), jsx({ factory: "React.createElement" }), commonjs(), babel({ exclude: "node_modules/**", extensions: [".js", ".jsx"], }), postcss(), peerDepsExternal(), ] ... babelHelpers: 'bundled' option was used by default. It is recommended to configure this option explicitly, read more here: https://github.com/rollup/plugins/tree/master/packages/babel#babelhelpers ... 'runtime' - you should use this especially when building libraries with Rollup.
🌐
GitHub
github.com › behzadam › shared
GitHub - behzadam/shared: Boilerplate for creating React component libraries, with Rollup.js ,Storybook, Typescript, Tailwind CSS, Shadcn/ui · GitHub
Boilerplate for creating React component libraries, with Rollup.js ,Storybook, Typescript, Tailwind CSS, Shadcn/ui - behzadam/shared
Starred by 5 users
Forked by 2 users
Languages   JavaScript 47.7% | TypeScript 42.8% | CSS 9.5%
🌐
GitHub
github.com › atherdon › example-rollup-react-component-npm-package
GitHub - atherdon/example-rollup-react-component-npm-package: Example React Component, Published to npm
jaebradley.github.io/example-rollup-react-component-npm-package/?selectedkind=anexample&selectedstory=basic usage&full=0&addons=1&stories=1&panelright=1&addonpanel=storybook/actions/actions-panel
Forked by 23 users
Languages   JavaScript 74.2% | CSS 24.7% | SCSS 1.1% | JavaScript 74.2% | CSS 24.7% | SCSS 1.1%
🌐
GitHub
github.com › ruilisi › rollup-react-library
GitHub - ruilisi/rollup-react-library: Another react library creator which follows latest js libraries
npm install --save rollup-react-library · import React, { Component } from 'react' import MyComponent from 'rollup-react-library' class Example extends Component { render () { return ( <MyComponent /> ) } } MIT © ruilisi
Author   ruilisi
🌐
Medium
medium.com › nplan › how-we-host-a-react-component-library-on-github-packages-167f0cb1cb9c
How we host a React component library on GitHub Packages | by Rares Capilnar | nPlan | Medium
November 29, 2021 - mkdir my-component-library && cd my-component-library npm init git init git remote add origin git@github.com:stephixone/my-component-library · Next, we install react and react-dom. If you don’t have yarn globally installed, or to ensure other contributors have it in the library project and to ensure version consistency, you will want to to install it here as well. ... npm i -D @babel/core @babel/preset-react @rollup/plugin-babel @rollup/plugin-commonjs @rollup/plugin-json @rollup/plugin-node-resolve @rollup/plugin-url babel-loader rimraf rollup rollup-plugin-peer-deps-external rollup-plugin-postcss
🌐
GitHub
github.com › DmacMcgreg › Component-Library-Monorepo-Template-RollupJS-Lerna-Yarn-Workspaces
GitHub - DmacMcgreg/Component-Library-Monorepo-Template-RollupJS-Lerna-Yarn-Workspaces: I found it difficult to find a simple and modern monorepo structure for individually-versioned React components, so I made one.
April 28, 2019 - I found it difficult to find a simple and modern monorepo structure for individually-versioned React components, so I made one. Component-Library-Monorepo-Template-RollupJS-Lerna-Yarn-Workspaces
Starred by 51 users
Forked by 6 users
Languages   JavaScript 98.1% | Shell 1.9% | JavaScript 98.1% | Shell 1.9%
🌐
GitHub
github.com › transitive-bullshit › react-modern-library-boilerplate
GitHub - transitive-bullshit/react-modern-library-boilerplate: Boilerplate for publishing modern React modules with Rollup · GitHub
Boilerplate and CLI create-react-library for publishing modern React modules with Rollup and example usage via create-react-app. 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.
Starred by 325 users
Forked by 47 users
Languages   JavaScript 71.6% | HTML 21.8% | CSS 6.6%
🌐
GitHub
github.com › thiswallz › rollup-react-starter-lib-ts
GitHub - thiswallz/rollup-react-starter-lib-ts: Template to create your own Typescript React library with Rollup.
Template to create your own Typescript React library with Rollup. - thiswallz/rollup-react-starter-lib-ts
Starred by 13 users
Forked by 2 users
Languages   JavaScript 52.9% | TypeScript 47.1% | JavaScript 52.9% | TypeScript 47.1%
🌐
Medium
medium.com › xgeeks › the-ultimate-guide-to-setting-up-your-react-component-library-549c43c1adc9
The Ultimate Guide to Setting Up Your React Component Library | by Milton Boos Junior | xgeeks | Medium
February 9, 2023 - Change the package.json to use Rollup’s build instead of react-scripts. Finally, change main and module to the respective commonjs and esmodules outputs. Make sure to specify the types declaration file in the types field. By now you should already have some commits in your GitHub repository, so let’s take advantage of other GitHub tools to publish our package seamlessly.