@wheelofnames/lib
v0.0.23
Published
This package contains some common utilities used by the https://wheelofnames.com web client, the Wheel of Names API, Discord bot, as well as various other tools. This package is likely useless to you if you are not a Wheel of Names developer.
Downloads
924
Readme
Wheel of Names lib
This package contains some common utilities used by the https://wheelofnames.com web client, the Wheel of Names API, Discord bot, as well as various other tools. This package is likely useless to you if you are not a Wheel of Names developer.
Contents
- Wheel (and Wheel2) classes
- WheelConfig class
- standardizeWheelConfig function
- WheelPainter (web-only) class
- hubSizes object
- ImageUtil functions
- WheelEntry, WheelType, HubSize, ApiWheel, ShareMode types
Developing
This package is part of the Wheel of Names monorepo, which is private. Everything below this point is only useful for those with access to the repo.
Install dev dependencies with npm i
.
Testing
npx playwright install --with-deps # only needs to be done once
npm run test
To test local changes to lib in the client and backend, npm uninstall @wheelofnames/lib
in their
respective directories, then add "@wheelofnames/lib": "file:../lib",
to their package.json
and
run npm i
. Don't forget to revert their package.json
and package-lock.json
before committing,
since local dependencies don't work in CI/CD.
Publishing
Publish a new version:
npm run publish:patch # or minor/major