Skip to content

๐Ÿ”ง A ready-to-use starter for publishing a React & Typescript package to npm using Rollup. ๅฟซ้€Ÿๅผ€ๅ‘่„šๆ‰‹ๆžถ

Notifications You must be signed in to change notification settings

Beking0912/react-typescript-rollup-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

About

๐Ÿ”ง A ready-to-use starter for publishing a React & Typescript package to npm using Rollup. ๅฟซ้€Ÿๅผ€ๅ‘่„šๆ‰‹ๆžถ

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published