by Protosus
Starter template for React library development with Vite. Pull it as your starting point, then change your origin to point to actual repo.
- Uses
pnpm
for faster install using smart caching - Public type module
Vite
dev server and toolkit and- Dev dependencies for testing and development
vitest
eslint
react
typescript
- and more...
changesets
for changelogs and auto-release workflow- Exports definitions for index and types
- Files definition for npn package release
gh-pages
for publishing demos if needed
build
test
release
...
Uses vitest
. Simply tun test command
pr
unit tests with cachingmain
branch npm auto publishing
NOTE
Be sure to addNPM_TOKEN
secret in you GH repository under: settings/
secrets/
actions.
You need to generate aclassic
access token forAutomation
under:https://www.npmjs.com/settings/.../tokens/
NOTE
Enable GH repo workflow permissions toRead and write permissions
under: settings/
actions/
general This will enablechangeset
to auto-version your package.
MIT
included ini package as well
To install Overdrag, use npm or yarn:
npm install boilerplate-package-vite-react
or
yarn add boilerplate-package-vite-react
or
Import the Overdrag Rect component:
import MyComponent from "boilerplate-package-vite-react";
Render component anywhere in you app:
function App() {
return (
<MyComponent
/* optional props */
style={{ backgroundColor: "red" }}
/>
);
}
example
Special property
The available events are:
example
: Special events
This is a detail description of your component
Hit me up on Li
Enjoy! ๐๐๐