Skip to content

Migrate to quaire 1.0, Vite, and current tooling - #1

Merged
devCrossNet merged 5 commits into
mainfrom
chore/quaire-1-and-tooling
Oct 8, 2026
Merged

devCrossNet merged 5 commits into
mainfrom
chore/quaire-1-and-tooling

Conversation

@devCrossNet

Copy link
Copy Markdown
Owner

Summary

  • Build: Vue CLI, webpack, Babel, and Jest are replaced by Vite 8 and Vitest 5. The PWA uses vite-plugin-pwa.
  • Dependencies: all are on the latest version. TypeScript stays on ~6.0, because typescript-eslint only supports TypeScript < 6.1.
  • Tooling: ESLint 10 flat config, Prettier 3, husky 9 (pre-commit runs test:release), commitlint.
  • CI: a GitHub Actions workflow runs typecheck, tests, ESLint, Prettier, and build on Node 22 and 24.
  • quaire 1.0: the MyQuaire subclass is replaced by a custom DIALOG component type. The story data uses the 1.0 format and variants.
  • Story: branches with missing next targets now end with "THE END" or "TO BE CONTINUED...". The brand and age choices lead to short placeholder dialogs.
  • Removed: Cypress (placeholder test only) and the empty Vuex store.

Breaking changes

  • Node >= 22.12 is required.
  • Scripts: npm run dev instead of serve, npm test instead of test:unit.
  • Game data: quaire 1.0 format. dialogOptions is now lines.

Notes

  • Commit 8ebc7ce does not build alone. The code uses the quaire 0.x API until cbd7a60.
  • Saved games in localStorage still load. The old activeQuestionId key is deleted.

Test plan

  • npm run test:release: typecheck, 25 tests (about 91% line coverage), lint, prettier
  • npm run build and vite preview: routes, manifest, and service worker respond
  • Play the game in the browser: all 4 endings, reset, reload during the game

🤖 Generated with Claude Code

devCrossNet and others added 4 commits October 8, 2026 21:23
- replace vue cli, webpack, babel and jest with vite 8 and vitest 5
- replace the vue cli pwa plugin with vite-plugin-pwa
- update vue, vue-router and all tools to the latest versions
- use typescript 6.0 with strict mode and bundler module resolution
- use eslint 10 flat config, prettier 3, husky 9 and commitlint
- add a github actions workflow for node 22 and 24
- remove cypress and the unused vuex store

BREAKING CHANGE: node >= 22.12 is required. The scripts changed:
use `npm run dev` instead of `npm run serve` and `npm test`
instead of `npm run test:unit`. The e2e tests were removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- replace the MyQuaire subclass with a custom DIALOG component type
- convert the story data to the quaire 1.0 format and use variants
  for the dialog that depends on the "how are you" answer
- end the branches with missing next questions and show
  "THE END" or "TO BE CONTINUED..." when the game is complete
- add placeholder dialogs for the brand and age story lines
- restore saved games from the result only
- show the required error of an input only after a submit
- replace lodash.get and lodash.template with a small helper
- add tests for the story paths, the components and the game view

BREAKING CHANGE: games use the quaire 1.0 question definition
(`key`, `title`, `options`, `next`, `variants`) and the dialog
property `dialogOptions` is now `lines`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for boring-raman-d3a49a ready!

Name Link
🔨 Latest commit d8309ab
🔍 Latest deploy log https://app.netlify.com/projects/boring-raman-d3a49a/deploys/6ac7ef8dfe888b00089d0838
😎 Deploy Preview https://deploy-preview-1--boring-raman-d3a49a.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Netlify built the site with node 12.18.0, which cannot run husky 9
or vite 8. Set node 22, the build command, the publish directory,
and a redirect for the single page app routes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@devCrossNet
devCrossNet merged commit e48e3d2 into main Oct 8, 2026
6 checks passed
@devCrossNet
devCrossNet deleted the chore/quaire-1-and-tooling branch October 8, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant