- TypeScript 77.1%
- Vue 18.7%
- JavaScript 3.2%
- SCSS 0.6%
- HTML 0.2%
- Other 0.2%
- Replace all iterator spreads ([...map.values()] etc) with Array.from() across engine and viewer: under the TS->babel downlevel chain they compiled to __spreadArrays, which reads .length on an iterator and produced 'RangeError: invalid array length' on 'Sector rotations finished' (the reported boardgamers.space crash), plus several latent same-class sites. - Break the research-tracks.ts -> ../index barrel import cycle (imports Event/Expansion from leaf modules now): the cycle left Engine in TDZ and the whole bundle failed with 'Cannot access engine_Engine before initialization' at module eval under the rebuilt module order. - Fix stale cache-loader output producing raw vue_1.default accesses for the vue webpack external (window.Vue has no .default): 'Cannot read properties of undefined (reading extend)' at load. Clean rebuild emits babel interop wrappers correctly. vue-global-shim.js added as belt-and-braces doc for the external's shape. - Add autoprefixer as an explicit viewer devDependency (pnpm 11 no longer hoists it; the lib build failed on postCSS plugin load). - Update stale spec type signatures surfaced by the import change (tile position as EventSource, loadFaction arity, ChargeRequest literal cast, AvailableCommand data narrowing, FederationInfo new fields). Verified: engine 750 passing / 4 pending; viewer 809 passing; lint + prettier clean; rebuilt UMD has zero iterator-spread call sites and loads + completes sector rotation (with and without rotations) in Chromium against the real bundle with CDN-provided Vue 2. |
||
|---|---|---|
| .github | ||
| .husky | ||
| .vscode | ||
| docs/lost-fleet | ||
| engine | ||
| old-ui | ||
| viewer | ||
| .editorconfig | ||
| .gitignore | ||
| .gitpod.dockerfile | ||
| .gitpod.yml | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| .tool-versions | ||
| AGENTS.md | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
Gaia Project
Mono repo containing the viewer & the engine for Gaia Project
Checkout their READMEs:
Demo
Check out boardgamers.space! Reach out to us if you want to contribute.
Install
Do pnpm install in the main folder
Test locally
After the installation step, you can run the viewer with:
cd viewer
npm run serve
It will use the engine in its sibling folder
Commit messages
We try to follow the gitmoji initiative. Extensions are available on VS Code & IntelliJ.
The format of a commit message is: <gitmoji> (all|engine|viewer) Commit message
Merging PRs
If the PR's commit history is clean, and commit messages conform to the policy, prefer a rebase to a squash.
If you need to squash, take care to add the appropriate gitmoji & scope to the commit message.
If the PR has fixup commmits starting with fixup!, approve the PR first, let the contributor adjust their PR to remove the fixup commits, and then rebase.