generator-react-library-starter

A Yeoman generator to create React libraries.

Usage no npm install needed!

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

README

generator-react-library-starter

Getting started

This is a yoeman generator for a React library starter kit. To get started run these commands:

$ npm i -g yo

$ npm i -g generator-react-library-starter

$ mkdir my-new-project && cd my-new-project

$ yo react-library-starter

What do you get?

Scaffolds out a complete JavaScript library directory structure for a React component library including a webpack config, babelrc and eslintrc files, and and example component and test file. The structure should look like this:

├── .babelrc
├── .eslintrc
├── .gitignore
├── LICENSE
├── README.md
├── package.json
├── webpack.config.js
└── __tests__/
|   └── index.js
└── examples/
|    └── index.js
|    └── styles.css
└── src/
    └── index.js

License

MIT