boilerplate-package-vite-react v0.0.2
by Protosus
Starter template for React library development with Vite
Starter template for React library development with Vite. Pull it as your starting point, then change your origin to point to actual repo.
Features
Readme badges
Packaging
- Uses
pnpmfor faster install using smart caching - Public type module
Vitedev server and toolkit and- Dev dependencies for testing and development
vitesteslintreacttypescript- and more...
changesetsfor changelogs and auto-release workflow- Exports definitions for index and types
- Files definition for npn package release
gh-pagesfor publishing demos if needed
Scripts
buildtestrelease...
Testing
Uses vitest. Simply tun test command
GH Workflows
prunit tests with cachingmainbranch npm auto publishing
NOTE
Be sure to addNPM_TOKENsecret in you GH repository under: settings/secrets/actions.
You need to generate aclassicaccess token forAutomationunder:https://www.npmjs.com/settings/.../tokens/NOTE
Enable GH repo workflow permissions toRead and write permissionsunder: settings/actions/general This will enablechangesetto auto-version your package.
License
MITincluded ini package as well
--- DOCS Examples ---
Installation
To install Overdrag, use npm or yarn:
npm install boilerplate-package-vite-reactor
yarn add boilerplate-package-vite-reactor
Usage
Import the Overdrag Rect component:
import MyComponent from "boilerplate-package-vite-react";Component
Render component anywhere in you app:
function App() {
return (
<MyComponent
/* optional props */
style={{ backgroundColor: "red" }}
/>
);
}Properties
exampleSpecial property
Events
The available events are:
example: Special events
Description
This is a detail description of your component
PS
Hit me up on Li
Enjoy! 🎉🎉🎉
3 years ago

