pokerstoker-shared
v1.4.0
Published
Shared types and utilities for PokerStoker
Maintainers
Readme
pokerstoker-shared
Shared types and utilities for the PokerStoker application.
Installation
npm install pokerstoker-sharedUsage
// Import all types
import * as PokerTypes from 'pokerstoker-shared';
// Or import specific types
import { Player, TableState } from 'pokerstoker-shared';
// Or import directly from types
import { GameStage } from 'pokerstoker-shared/types';Development
Building the package
npm run buildWatching for changes
npm run watchVersioning
This package uses semantic-release for automatic versioning based on commit messages:
- Commit messages with
fix:trigger a patch version update - Commit messages with
feat:trigger a minor version update - Commit messages with
feat!:orfix!:or containingBREAKING CHANGE:trigger a major version update
When commits are pushed to the main branch, the CI/CD pipeline automatically:
- Analyzes commit messages
- Determines the next version number
- Generates a changelog
- Publishes to npm
- Creates a GitHub release
Types
This package includes TypeScript interfaces and types for:
- Player data
- Game state
- Table settings
- Socket events and responses
License
ISC
