All Projects → dclark27 → react-library-template

dclark27 / react-library-template

Licence: MIT license
Jumpstart your team's shared react library

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to react-library-template

sodium-ui
Sodium is a simple, modular and customizable web component library to build elegant and accessible UI pieces for your React Application.
Stars: ✭ 23 (-11.54%)
Mutual labels:  storybook, component-library
lerna-starter
Simple React UI Development environment boilerplate to develop, test and publish your React components.
Stars: ✭ 55 (+111.54%)
Mutual labels:  storybook, component-library
react-uswds
USWDS 3.0 components built in React
Stars: ✭ 108 (+315.38%)
Mutual labels:  storybook, component-library
GNUI
💅 Nordcloud's design system for SaaS products.
Stars: ✭ 21 (-19.23%)
Mutual labels:  storybook, component-library
react-component-library-lerna
Build your own React component library managed with lerna, presented with storybook and published in private npm registry.
Stars: ✭ 55 (+111.54%)
Mutual labels:  storybook, component-library
smores-react
🍭 Marshmallow React components
Stars: ✭ 34 (+30.77%)
Mutual labels:  storybook, component-library
fyndiq-ui
Library of reusable web frontend components for Fyndiq
Stars: ✭ 39 (+50%)
Mutual labels:  storybook, component-library
clockface
UI Kit for building Chronograf
Stars: ✭ 33 (+26.92%)
Mutual labels:  storybook, component-library
Govuk React
An implementation of the GOV.UK Design System in React using CSSinJS
Stars: ✭ 219 (+742.31%)
Mutual labels:  storybook, component-library
amazin
A MERN-stack app for eCommerce platform, Webshop, Web Store. Storybook: https://www.amazin.one/ Alternative: https://ntrix.github.io/amazin-story
Stars: ✭ 27 (+3.85%)
Mutual labels:  storybook
vuetify-with-storybook
Setting up Storybook with Vuetify the right way
Stars: ✭ 116 (+346.15%)
Mutual labels:  storybook
datahub
Datahub v2
Stars: ✭ 16 (-38.46%)
Mutual labels:  storybook
mint-ui
The UI library of Mint
Stars: ✭ 56 (+115.38%)
Mutual labels:  component-library
boilerplate-react-redux-pwa
It's sample boilerplate with pwa + react + redux + redux-saga
Stars: ✭ 14 (-46.15%)
Mutual labels:  webpack4
nextjs-ts-antd-redux-storybook-starter
🏃🏼 Next.js + TypeScript + Ant Design + Redux Toolkit + Redux Saga + Styled Components + Jest + Storybook 企业级项目脚手架模板
Stars: ✭ 78 (+200%)
Mutual labels:  storybook
shared-react-components-example
An example of a mono-repository of shared React components libraries!
Stars: ✭ 85 (+226.92%)
Mutual labels:  storybook
quickstart-miniprogram
🎉微信小程序webpack模板
Stars: ✭ 32 (+23.08%)
Mutual labels:  webpack4
eslint-config-galex
hopefully the last eslint config you'll ever need - customizable & modern best practices for JS, TS, Node, React, Remix, Next, Jest, testing-library & storybook
Stars: ✭ 166 (+538.46%)
Mutual labels:  storybook
bootpack
Create multi-page websites using bootstrap for development and webpack for task running.
Stars: ✭ 30 (+15.38%)
Mutual labels:  webpack4
vue-gql
A small and fast GraphQL client for Vue.js
Stars: ✭ 32 (+23.08%)
Mutual labels:  component-library

Deprecated. Just use TSDX from @jaredpalmer instead.

react-library-template

(formerly Storybook TypeScript React Component Library)

This repo attempts to solve the problem of how to share react hooks, components, and utilities with your team (or all of your personal projects). There are other solutions out there, such as create-react-library, but they are no longer updated and out of date.

By utilitizing Storybook, we are able to bypass any need for webpack and create-react-app. All component development can be done in isolation and can be published to a github page for other stakeholders to see.

This library uses TypeScript, react-testing-library, Jest, and ESLint and has everything preconfigured so you can skip straight to developing.

Setup

  • Clone this template repo by clicking "Use this template"
  • Rename it to your liking (e.g., my-company-react-library) and clone it locally
  • Rename the package.json name field, add any dependencies you need, and remove any parts of this README you no longer need
  • Run this project using the scripts below!

Developing with another library

Sometimes it is helpful be able to use the latest code as you develop in another project that you intend to consume this library with.

In order to do so:

  • Run npm run build:watch in this project
  • In your other project, run npm link ../react-library-template replacing the folder name with your new repo's name
  • Start your other project and you will have access to the compiled code as you write it!

Available scripts

start

Starts the storybook site at http://localhost:6006/

build

Executes the following sub scripts:

build:lint

Lints using eslint (using plugins from jest, jest-dom, react, and react-hooks)

build:library

Builds your library and copies all css / woff2 / svgs / png files to the build folder

build:storybook

Creates a static storybook site that you can host

test

Runs all tests with Jest and react-testing-library in watch mode

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].