Skip to content

Build distribuibile: npm run dist produce varano239-web.zip (FASE 8) - #30

Merged
ceccode merged 1 commit into
mainfrom
feat/build-distribuibile-zip
Aug 27, 2026
Merged

ceccode merged 1 commit into
mainfrom
feat/build-distribuibile-zip

Conversation

@ceccode

@ceccode ceccode commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Obiettivo

Chiudere la FASE 8 del piano di lancio: una build web distribuibile via varano239-web.zip, pronta per i portali che incastonano il gioco in un iframe (itch.io per primo).

Modifiche

  • npm run dist (scripts/build-dist.mjs): costruisce con base relativa ./ e senza service worker, verifica l'artifact e produce varano239-web.zip con index.html alla root (niente assolutizzazione, niente dipendenza di caricamento dai domini di produzione)
  • vite.config.ts: VITE_BASE_PATH=./ ora accettato (base relativa), VITE_NO_SW=1 esclude il service worker, VITE_OUT_DIR per dirigere l'output senza toccare dist/ di produzione
  • src/main.ts: registrazione service worker disattivata dalla variabile VITE_NO_SW (negli iframe dei portali non si può registrare un SW)
  • src/app/bootstrap.ts: l'errore di bootstrap usa resolveMessage invece di appConfigForLocale, togliendo dagli URL di produzione dal bundle JS di runtime
  • check nel comando dist: index.html/en/index.html senza riferimenti assoluti o risorse esterne (canonical/hreflang e link GitHub restano come metadata/ipertesti intenzionali), JS senza fetch verso URL assoluti, CSS senza url() esterne, niente sw.js
  • ESLint ignora dist-dist/; .gitignore ignora dist-dist/ e varano239-web.zip; ADR-020 aggiornata; comando documentato nel README

Verifica

  • npm run dist verde: 93 KB, 20 file, index.html alla root
  • avvio verificato in browser sotto un sotto-path /portal/ (come un portale): IT e EN caricano le 4 card ruolo senza errori console, lang corretto
  • npm run check verde: format, lint, typecheck, validazione, 321 unit test, build, budget bundle, 57 test Playwright
  • build di produzione su Netlify invariata (base /, SW attivo)

Messa in produzione

Draft per il test del proprietario. Dopo la verifica della preview può diventare Ready for review ed essere mergiata su main. L'upload su itch.io è il passo successivo (FASE 9).

npm run dist builds the game with a relative base and without the service worker, verifies the artifact stays self-contained (no absolute asset paths, no domain dependence), and packages it as varano239-web.zip for hosts that embed the game in an iframe, starting with itch.io. The canonical production build keeps base / and the PWA behavior (ADR-020).

AI-Mode: agent
@netlify

netlify Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for varano239 ready!

Name Link
🔨 Latest commit 4ef9673
🔍 Latest deploy log https://app.netlify.com/projects/varano239/deploys/6a908a9386ab9a00085a86e2
😎 Deploy Preview https://deploy-preview-30--varano239.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.

@github-actions

Copy link
Copy Markdown

AIDA PR Evidence Report

  • Repo: /home/runner/work/varano-239/varano-239
  • Default branch: main
  • Scope: PR change set @ 909ad26
  • Generated: 2026-08-27T19:06:09.164Z

Change Summary

  • 1 authored commit
  • 0 automated commits
  • 9 files touched

This report describes the commits in base..HEAD, not the repository's integrated history or deployed production state. Temporal change metrics are intentionally omitted here: a new PR has not existed long enough for rapid-retouch rates or trends to be interpretable.

Observed Provenance

100.0% evidence coverage — declared 1 · inferred 0 · none 0.

Autonomy level Commits
agent 1
assisted 0
autocomplete 0
none (hand-written) 0
unknown 0
automated (no cohort) 0

Provenance completeness

Every commit in this change set carries attribution evidence.

Interpretation Limits

  • Evidence coverage is 100.0%: a missing signal remains unknown; it is not evidence of human authorship and a defaultMode prior does not turn it into observed provenance.
  • Commit scope is pr at 909ad26: only commits in base..HEAD are included. This is a change-set view, not repository history, merge status, or deployed production state.
  • Rapid-retouch rates and trends are omitted from the PR report because a fresh change set has not had a comparable observation window.
  • AI tagging uses declarations and conservative heuristics; tool use that leaves no commit evidence cannot be recovered from git alone.

@ceccode
ceccode marked this pull request as ready for review August 27, 2026 22:03
@ceccode
ceccode merged commit c75026d into main Aug 27, 2026
9 checks passed
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