@lovebowls/leagueelements
v0.1.67
Published
League Elements package for LoveBowls
Readme
@lovebowls/leagueElements
A modern TypeScript package for managing league elements in LoveBowls.
Installation
npm install @lovebowls/leagueElementsFeatures
- Modern TypeScript implementation
- ESM and CommonJS support
- Tree-shaking friendly
- Comprehensive type definitions
- Built-in testing with Jest
- Full documentation with TypeDoc
Usage
import { BaseLeagueElement } from '@lovebowls/leagueElements';
// Create a new league element
const element = new BaseLeagueElement({
type: 'match',
// Add additional properties as needed
});
// Update element data
element.update({
type: 'updated-match'
});Development
Prerequisites
- Node.js >= 18
- npm >= 8
Setup
- Clone the repository
- Install dependencies:
npm install
Available Scripts
npm run build- Build the packagenpm run test- Run testsnpm run docs- Generate documentationnpm run lint- Run ESLintnpm run format- Format code with Prettier
Building
The package builds to both ESM and CommonJS formats:
- ESM:
dist/esm/ - CommonJS:
dist/cjs/ - Type definitions:
dist/types/
License
MIT
