Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 1.21 KB

File metadata and controls

22 lines (18 loc) · 1.21 KB

React Typescript Rollup Starter

👉👉👉 View the detailed tutorial here: Publish React npm Package with Rollup

This is a starter kit for building and publishing a TypeScript React project using Rollup.js. The kit includes configuration files and an example project structure for bundling and publishing your code as an npm package.

Features

  • Ready-to-use configuration files for Rollup.js, TypeScript and React.
  • Supports bundling and publishing code as an npm package.
  • Includes an example project structure for easy reference.

Getting Started

  1. Clone or download the project to your local machine.
  2. Install the necessary dependencies by running npm install.
  3. Write your TypeScript React code in the src/ directory.
  4. Build your code for production by running npm run build and npm run build:types.
  5. Test your package locally by running npm link and npm run start.
  6. Publish your package to npm by running npm publish.

Configuration Files

  • rollup.config.js: Configuration file for Rollup.js bundling.
  • tsconfig.json: Configuration file for TypeScript.
  • package.json: Configuration file for your npm package.