haraldrudell / lib-create-react-app

Share React components from create react app by Harald Rudell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lib-Create-React-App

Lib Create React App allows React components to be publicly published as npm packages

click for Video presentation, 10 min

Usage

Publish to npm in 3 commands:

  • yarn add --dev lib-create-react-app
  • yarn preplib
  • yarn pub

Implementation notes:

  • A separate package.json for npm is at publish/package.json
  • Separate LICENSE and README.md in publish/
  • Components to export in src/libindex.js
  • Package content at publish/lib/

Components

Example Project

Lib Create React App creates shareable libraries from projects bootstrapped with Create React App.

About

Share React components from create react app by Harald Rudell

License:Other


Languages

Language:JavaScript 98.3%Language:CSS 1.7%