All Projects â†’ tanem â†’ generator-typescript-react-lib

tanem / generator-typescript-react-lib

Licence: MIT license
🔩 A Yeoman generator for React libs written with Typescript.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to generator-typescript-react-lib

Generator Web Extension
Advanced WebExtension generator that creates everything you need to get started with cross-browser web-extension development.
Stars: ✭ 212 (+1225%)
Mutual labels:  yeoman-generator
delphi-generator-delphi
Yeoman generator for Delphi projects
Stars: ✭ 14 (-12.5%)
Mutual labels:  yeoman-generator
generator-mitosis
A micro-service infrastructure generator based on Yeoman/Chatbot, Kubernetes/Docker Swarm, Traefik, Ansible, Jenkins, Spark, Hadoop, Kafka, etc.
Stars: ✭ 78 (+387.5%)
Mutual labels:  yeoman-generator
Generator Chisel
Chisel is a development framework for creating easy to maintain and fast WordPress websites
Stars: ✭ 233 (+1356.25%)
Mutual labels:  yeoman-generator
generator-nullfactory-xrm
Yeoman generator for Dynamics 365 Solutions. It generates a project structure that facilitates the quick creation builds and automated release strategies with minimal effort.
Stars: ✭ 15 (-6.25%)
Mutual labels:  yeoman-generator
generator-fountain-react
Yeoman 'fountain' generator to start a webapp with React
Stars: ✭ 36 (+125%)
Mutual labels:  yeoman-generator
Generator Angular Webpack Es6
Yeoman generator for Angular projects using Webpack, ES6, SASS with some cool optional features. Feel free to contribute!
Stars: ✭ 172 (+975%)
Mutual labels:  yeoman-generator
generator-android-conductor
🤖 I generate some code .... beep beep
Stars: ✭ 17 (+6.25%)
Mutual labels:  yeoman-generator
generator-ngx-firebase-bootstrap
Generator for Angular / Firebase / Bootstrap projects
Stars: ✭ 44 (+175%)
Mutual labels:  yeoman-generator
generator-laravel-5
Scaffold Laravel 5.7 applications with ease.
Stars: ✭ 19 (+18.75%)
Mutual labels:  yeoman-generator
Generator Api
🚀 Yeoman generator for creating RESTful NodeJS APIs, using ES6, Mongoose and Express
Stars: ✭ 247 (+1443.75%)
Mutual labels:  yeoman-generator
generator-oraclejet
DEPRECATED Yeoman generator for creating Web and Mobile-hybrid Oracle JET based applications
Stars: ✭ 13 (-18.75%)
Mutual labels:  yeoman-generator
generator-angular-library
A yeoman generator for scaffolding a new angular 5 module that you can publish and share straight away to npm
Stars: ✭ 66 (+312.5%)
Mutual labels:  yeoman-generator
Generator Chrome Extension Kickstart
Scaffold out a Web Extension http://yeoman.io
Stars: ✭ 232 (+1350%)
Mutual labels:  yeoman-generator
generator-vue-plugin
Yeoman generator generating vue plugin 🚀
Stars: ✭ 29 (+81.25%)
Mutual labels:  yeoman-generator
Generator Awesome List
😎 Yeoman generator for GitHub awesome lists
Stars: ✭ 203 (+1168.75%)
Mutual labels:  yeoman-generator
generator-starterkit
Yeoman that scaffolds out a front end starterkit. 📦
Stars: ✭ 29 (+81.25%)
Mutual labels:  yeoman-generator
generator-jhipster-grpc
JHipster module, Adds support for gRPC and generates gRPC CRUD services
Stars: ✭ 43 (+168.75%)
Mutual labels:  yeoman-generator
generator-liferay-fragments
Yeoman generator for creating and maintaining Liferay Fragment projects
Stars: ✭ 31 (+93.75%)
Mutual labels:  yeoman-generator
generator-angular-lazy
Yeoman generator for creating Angular applications which lazy load components as needed at runtime. Based on SystemJS, JSPM, Babel and Gulp.
Stars: ✭ 33 (+106.25%)
Mutual labels:  yeoman-generator

generator-typescript-react-lib

npm version build status coverage status npm downloads

A Yeoman generator for React libs written with Typescript.

Table of Contents

Background

To provide a basic starting point when authoring React libraries with Typescript. By design not all use-cases will be handled, so some post-generation modifications may be required.

Features

  • Generates CommonJS, ES module, and Universal Module Definition bundles via Rollup.
  • Tests bundles via Jest.
  • Generates Typescript type declarations for publishing.
  • Outputs, strips, or wraps PropTypes declarations according to bundle type.
  • Configures continuous integration via GitHub Actions.
  • Configures code coverage analysis via Codecov.
  • Configures Renovate for dependency management.
  • Adds scripts for releasing to npm.
  • Makes Universal Module Definition bundles available via unpkg.
  • Initialises Git.

Installation

First, install Yeoman and generator-typescript-react-lib:

$ npm install -g yo generator-typescript-react-lib

Then generate your new library:

$ mkdir your-new-react-library && cd $_
$ yo typescript-react-lib

Common Workflows

Setup

  1. Create a new GitHub repository.
  2. Install/enable the Renovate GitHub app.
  3. Use this generator to create your lib.

Development

Everything revolves around GitHub PRs:

  1. Create a new local branch.
  2. Add a remote tracking branch.
  3. Make some changes.
  4. Push the changes.
  5. Open a PR.

It's also recommended to set branch protection rules against the master branch by selecting the following:

  • Require status checks to pass before merging.
  • Require branches to be up to date before merging.
  • ci.

Testing

Running npm test will:

  • Check code style with Prettier.
  • Type check with TypeScript.
  • Build the package assets.
  • Test the package assets.

Publishing

Once the PR checks have passed:

  1. Merge the PR.
  2. Checkout the master branch.
  3. Ensure master is up-to-date.
  4. Run npm release <newversion>. Refer to the npm-version docs for information on the newversion argument.

The release script will:

  1. Bump the package.json version.
  2. Run the test flow.
  3. Generate a CHANGELOG.md that includes these latest changes.
  4. Generate or update the AUTHORS file.
  5. Make a version commit and tag.
  6. Push the commit and tag to GitHub.
  7. Publish the package to npm.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].