Skip to content

zxqx/generator-react-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

generator-react-lib

A react component generator with UMD build and browser testing infrastructure.

Circle CI

Requirements

  • NodeJS
  • Yeoman

Tech Stack

Setup

Install it globally:

$ npm install -g generator-react-lib

Usage

Make a folder for your lib:

$ mkdir lib-name && cd lib-name

Generate the scaffolding:

$ yo react-lib

Development

Run the example app at http://localhost:8080:

$ npm start

Run tests and watch for code changes using jest:

$ npm test

Lint src and test files:

$ npm run lint

Generate UMD output in the lib folder (runs implicitly on npm version):

$ npm run build

License

MIT

About

A react component generator with UMD build and browser testing infrastructure.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published