test-react-library-ss
v0.1.5
Published
React component library migrated from React-Locator application
Readme
Bullseye Components Library
A React component library built with Vite, migrated from the React-Locator application.
Development
Setup
yarn installAvailable Scripts
yarn dev- Start development serveryarn build- Build the library for productionyarn typecheck- Run TypeScript type checkingyarn lint- Run ESLintyarn lint:fix- Fix ESLint issues automaticallyyarn test- Run tests with Vitestyarn test:ui- Run tests with Vitest UI
Project Structure
src/
├── components/ # React components
│ └── ComponentName/
│ ├── ComponentName.tsx
│ ├── ComponentName.types.ts
│ └── index.ts
├── styles/ # CSS styles
└── index.ts # Main exportsUsage
import { GoogleMap, LocationInformation } from '@bullseye/components-library'
import '@bullseye/components-library/styles'
function App() {
return (
<div>
<LocationInformation location={locationData} />
<GoogleMap markers={markers} />
</div>
)
}Component Migration
This library is being built by migrating components from the React-Locator application. Each component should be:
- More generic and reusable
- Properly typed with TypeScript
- Tested with Vitest
- Well documented with clear interfaces
