Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.8 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.8 KB

Lib-Create-React-App

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

click for Video presentation, 10 min

© 2018-present Harald Rudell [email protected] (http://www.haraldrudell.com)

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.

© 2018-present Harald Rudell [email protected] (http://www.haraldrudell.com)