generator-react-pkg

yeoman generator for publishable React components

Usage no npm install needed!

<script type="module">
  import generatorReactPkg from 'https://cdn.skypack.dev/generator-react-pkg';
</script>

README

generator-react-pkg

Yeoman generator for react packages

Installation

Ensure that you have Yeoman installed as a global module

npm install -g yo

Install generator-react-pkg

npm install -g generator-react-pkg

Run generator

yo react-pkg

Follow through the guided steps then,

cd <PACKAGE-NAME>

npm install

npm start

And just like that you'll have an npm-publishable react library!

Publish

Double Check your package.json!

npm publish