feat: add dgbuild bundle command - #14
Merged
Merged
Conversation
Headless equivalent of the extension's "Export Web Page..." - builds out/web/ + a release zip for a dialog.json export configuration, so a GitHub Action can publish a project release. Wraps the existing vscode-free bundleWebExport pipeline. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RTppFtoRZ3ZmWYF14xDiXX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
bundlesubcommand to thedgbuildheadless CLI:It builds a complete web page (
out/web/plus a zip atout/<name>-<release>.zip) for one ofdialog.json's named export configurations — the command-line equivalent of the extension's Export Web Page.... This lets a GitHub Action build and publish a project release with no extension host.How
vscode-freebundleWebExportpipeline (src/dialog-web-export.ts) — no core logic duplicated, no new runtime dependencies, nopackage.jsonfiles-allowlist changes (resources/**/*andyazlalready ship to npm).dialogc/dgdebug/aambundle;-v/--verboseun-quiets thedgdebuglifecycle logging from the story-info query (same pattern asrun-skein).Tests
bundle.spec.ts—resolveExportConfigcases + validation (nodialog.json, no exports).bundle-integration.spec.ts— real end-to-end againstdialogc/dgdebug/aambundle, self-skipping when the toolchain is absent (matchesrun-skein-integration.spec.ts).dgsamplefixture.Docs
CHANGELOG.md,README.md, and thecommand-line-dgbuildmanual page (new section + a GitHub Pages CI snippet).🤖 Generated with Claude Code