Two-player cribbage discard and play improvement tool.
Code in main
is automatically built on git push
and deployed to the GitHub
Pages hosted
Cribbage Trainer app site
and Storybook site
on build success via GitHub Action Workflow.
.nvmrc
by hand, or if using nvm:
nvm install
npm install
npm run build
npm start
then open http://localhost:5173
npm start:production-preview
then open http://localhost:4173
npm run clean && npm run build && npm run lint && npm test && npm run playwright:install && npm run storybook:test && npm run docker-test-e2e
(running build
prior to lint
as some TypeScript ESLint issues are only found
by ESLint when a dist/
directory containing build output exists for some
unknown reason.)npm run storybook
npm build storybook
When the Playwright e2e (end to end) fail due to screenshot differences, compare
expected and actual screenshots via npx --no-install playwright show-report
to
determine if the changes are visually acceptable. If acceptable, to update the
expected screenshots:
rm tests-e2e/index.screenshots.spec.ts-snapshots/*.png
, thennpm run docker-test-e2e
.