Add root CLAUDE.md, docs/ (game-rules.md, release.md), LESSONS.md and .env.example; trim README.md to a landing page linking to docs/. No linter, test runner or formatter is configured for this static HTML/CSS/JS project, so no .claude/settings.json hooks or CI workflows were added: there is nothing to run. CI (asset versioning + Android APK build/release) already exists in .gitea/workflows and .github/workflows and is documented in docs/release.md as-is, since there is no development branch to drive the standard version.yml flow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2.3 KiB
CLAUDE.md
Overview
Role-based impostor-style party game. 100% static (vanilla HTML/CSS/JS, no backend, no build step, no framework) served from www/, packaged as an Android app via Capacitor for distribution.
Commands
- Dev:
python -m http.server 8000from the repo root, then openhttp://localhost:8000/www/(a static server is required sofetchcan load the.txtword-pool files). - Test: none configured.
- Lint: none configured.
- Build (Android):
npx cap sync androidthencd android && ./gradlew assembleDebug(orassembleReleasewith a keystore; seedocs/release.md).
Architecture
Plain JS game logic in www/script.js, markup in www/index.html, styles in www/styles.css. Word pools live as .txt files in www/word-pools/, indexed by manifest.json; two pools are embedded in script.js for full offline play, the rest are fetched at runtime. Game state persists in localStorage. See docs/game-rules.md for full rules and the word-pool format, and docs/release.md for the CI/CD pipeline.
Conventions
- No build tooling: edit
www/*.js|css|htmldirectly; there is no transpilation or bundling step. version-assets.shcontent-hasheswww/script.js,www/styles.css,www/logo.pngand rewrites references inwww/index.html; it runs in CI (.gitea/workflows/1-version-assets.yml), not locally.- Game copy and word pools are in Spanish; code and comments are in English.
Workflow quirks
- There is no
developmentbranch;mainis the only long-lived branch. Work on a feature branch and push it; ask before merging tomain. - No automated semver bump workflow exists for this repo (unlike the global CLAUDE.md default).
package.json'sversionandCHANGELOG.mdare updated by hand.
Deployment
Not a deployed web service: ships as an Android APK attached to a rolling latest release. See docs/release.md for the full pipeline (asset versioning + Gradle build + release upload, via Gitea Actions and a mirrored GitHub Actions workflow).
Gotchas
- Opening
www/index.htmldirectly viafile://breaks the remote word pools (fetchneedshttp(s)://); always serve it. android/,*.keystoreandkeystore.propertiesare gitignored; the Android release build needsKEYSTORE_BASE64/KEYSTORE_PASSWORD/KEY_ALIAS/KEY_PASSWORDCI secrets or it silently falls back to a debug build.