Skip to content

A scaffold application for building a React library/component using Vite, ready for publication to npm.

License

Notifications You must be signed in to change notification settings

tomsouthall/react-library-vite

Repository files navigation

react-library-vite

This repository accompanies the blog entry Publishing a React component to npm using Vite.

This is a scaffold application for building a React library/component using Vite, that can be published to npm.

Feel free to clone this repository. Simply replace all instances of react-library-vite in /package.json and in /vite.config.js with the name of your npm package.

Replace version, description and author in /package.json.

To run in development

npm run dev

To run tests

npm test

or

npm run watch

To build and publish

npm run build

followed by

npm publish

License

MIT © tomsouthall

About

A scaffold application for building a React library/component using Vite, ready for publication to npm.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published