generator-react-lib-ts
Yeoman generator for react lib with typescript
Installation
yarn add yo -D
yarn add generator-react-lib-ts -D
You may want to install them globally if you are going to use them directly in the console.
Generating a new component
yo react-lib-ts
Usage
The following commands are available in your project:
yarn build
yarn test
yarn run lint
yarn run dev
Release notes
1.2.0
- Upgrading to react 16.8.2
- Adding functional component with react hooks template
- Fixed tsconfig issues and tslint issues.
1.1.0
- Embrace babel to compile typescript. ts-loader deprecated.
- Allow "yarn run dev" to start a live demo page on your localhost:8080 with HMR support.
- Update docs