feat(astro): add --astro flag and wire the Astro starter into the pipeline#104
Merged
Merged
Conversation
…eline Complete Astro multi-framework output (v2.0.0): templates/astro is a complete hybrid-islands starter; this wires it into setup and the pipeline config (#78). - scripts/setup-project.sh: add --astro alias; scaffold by copying templates/astro (deterministic + offline) instead of `pnpm create astro` - pipeline.config.json: recognize Astro inputs (astro.config.*, src/**/*.astro) - Document that Astro maps to the web-app app type (framework is the renderer, orthogonal to app type) in docs/multi-framework - README + templates/README list Astro alongside Next.js and Vite - Add a --astro --dry-run test - Verified: setup-project.sh demo-astro --astro && cd demo-astro && pnpm install && pnpm build succeeds (dist/ produced) Refs #78 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5 tasks
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.
Summary
Completes the v2.0.0 multi-framework output (Next.js, Vite, Astro) goal by making Astro a fully wired, first-class output target (#78).
templates/astro/already exists as a complete hybrid-islands starter (Astro 5 + React islands + Tailwind); this PR wires it into the scaffolder and the pipeline config, documents it, and verifies it builds end-to-end.Changes
scripts/setup-project.sh— adds the--astroflag (alias for--renderer astro) and updated usage. The Astro path now copiestemplates/astro/(deterministic, offline) rather than scaffolding viapnpm create astro, since we ship a complete starter; redundant dep installs are skipped..claude/pipeline.config.json— recognizes Astro inputs (astro.config.*in the config cache category,src/**/*.astroin source). Validated against the schema.docs/multi-framework/README.md— documents that Astro maps to theweb-appapp type (app type describes the kind of app — web-app / chrome-extension / pwa / react-native — while the framework is the orthogonalrenderer).scripts/__tests__/setup-project.test.js— adds a--astro --dry-runalias test.Acceptance criteria
templates/astro/exists with a minimal working Astro starter (Astro 5, React islands, Tailwind) — already present, now verified buildablescripts/setup-project.shaccepts an--astroflagweb-appapp typeSmoke test
Verified locally end-to-end:
(The issue's
cd appis the repo's documentation convention — the project is created at the given name, e.g.demo-astro, exactly as the README's own quickstart shows.)Testing
setup-project.test.js(7 tests incl. the new--astroalias) ✅scripts/validate-pipeline-config.js✅ (schema-valid),check-doc-counts✅prettier --check .✅,eslint .(0 errors)setup-project.sh demo-astro --astro→pnpm install→pnpm buildproducesdist/✅Refs #78