@beerush/utils
v0.5.0
Published
Beerush Utilities
Readme
@beerush/utils
A TypeScript utilities library for internal use, but you can use it as well if you want.
Documentation
Visit the Documentation Site for detailed information on how to use this library.
Development
To run the documentation locally:
# Install dependencies
bun install
# Run documentation dev server
bun run docs:devBuilding Documentation
To build the documentation for production:
bun run docs:buildThe built documentation will be located in docs/.vitepress/dist.
Testing
This library includes both unit tests and browser tests.
Unit Tests
Run unit tests with:
bun testBrowser Tests
Run browser tests with:
bun run test:browserBrowser tests use Playwright to test the library in actual browsers (Chromium, Firefox, and WebKit).
To run tests for a specific browser:
npx playwright test --project=chromiumGitHub Pages Deployment
This repository is configured with a GitHub Actions workflow that automatically deploys the documentation to GitHub Pages whenever changes are pushed to the main branch.
To enable GitHub Pages:
- Go to the repository settings
- Navigate to "Pages" in the sidebar
- Under "Source", select "GitHub Actions"
- The documentation will now be automatically deployed on each push to
main
API Docs
You can also check the API Docs for detailed API reference.
