Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .claude/pipeline.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,10 @@
"directory": ".claude/pipeline-cache",
"maxAgeDays": 7,
"inputCategories": {
"source": ["src/**/*.{ts,tsx,js,jsx}", "components/**/*.{ts,tsx}"],
"source": ["src/**/*.{ts,tsx,js,jsx}", "src/**/*.astro", "components/**/*.{ts,tsx}"],
"styles": ["src/**/*.css", "styles/**/*.css", "tailwind.config.*"],
"tests": ["**/*.test.{ts,tsx,js,jsx}", "**/*.spec.{ts,tsx}"],
"config": ["package.json", "tsconfig.json", "vite.config.*", "next.config.*"],
"config": ["package.json", "tsconfig.json", "vite.config.*", "next.config.*", "astro.config.*"],
"tokens": ["design-tokens.lock.json", "tailwind.config.*"],
"figma": ["build-spec.json", "design-tokens.lock.json"]
},
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ A Claude Code-integrated multi-framework app development framework with TypeScri
git clone <repository-url>
cd aurelius

# Initialize a new project (Next.js or Vite)
./scripts/setup-project.sh my-app --vite # or --next
# Initialize a new project (Next.js, Vite, Astro, SvelteKit, or Expo)
./scripts/setup-project.sh my-app --vite # or --next, --astro, --svelte, --expo

# Install dependencies
cd app && pnpm install
Expand Down Expand Up @@ -79,6 +79,7 @@ project-root/
│ ├── shared/ # ESLint, Prettier, Tailwind, TS, Vitest
│ ├── nextjs/ # Next.js config
│ ├── vite/ # Vite config
│ ├── astro/ # Astro hybrid-islands starter (React + Tailwind)
│ └── chrome-extension/ # Playwright E2E fixtures for extensions
├── docs/ # Documentation
│ ├── figma-to-react/ # Figma pipeline guide
Expand Down Expand Up @@ -258,6 +259,7 @@ Starter configuration files for new projects:
| `templates/shared/` | ESLint, Prettier, Tailwind, TypeScript, Vitest configs |
| `templates/nextjs/` | Next.js config |
| `templates/vite/` | Vite config |
| `templates/astro/` | Astro hybrid-islands starter (React islands + Tailwind, file-based routing) |
| `templates/chrome-extension/` | Playwright E2E fixtures for Chrome extensions |

Full reference: `templates/README.md`
Expand Down
2 changes: 2 additions & 0 deletions docs/multi-framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ The intake skills (`figma-intake`, `canva-intake`, `screenshot-intake`) also ask

- **Converter agent:** `astro-converter`
- **Renderer:** `astro` (`language`/`outputTarget` = `react`)
- **App type:** `web-app` — Astro produces standard web output (static HTML + optional SSR), so it uses the **`web-app`** app type in `pipeline.config.json`. App type describes the _kind_ of app (web-app / chrome-extension / pwa / react-native); the framework choice (Next.js / Vite / **Astro**) is the orthogonal `renderer`, owned by the renderer registry. `pipeline.config.json` recognizes Astro inputs via `astro.config.*` and `src/**/*.astro` in its cache categories.
- **Scaffold:** `./scripts/setup-project.sh <name> --astro` copies `templates/astro/` (a complete starter) and installs it.
- **Styling:** Tailwind CSS via `@astrojs/tailwind`
- **Test library:** Vitest + @testing-library/react (islands) + Astro Container API (`.astro` statics)
- **Template:** `templates/astro/` (`@astrojs/react` islands + `@astrojs/tailwind`)
Expand Down
7 changes: 7 additions & 0 deletions scripts/__tests__/setup-project.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ describe("setup-project.sh", () => {
expect(r.stdout).toMatch(/template:\s+templates\/sveltekit/);
});

it("--astro alias maps to the astro renderer", () => {
const r = run(["my-app", "--astro", "--dry-run"]);
expect(r.exitCode).toBe(0);
expect(r.stdout).toMatch(/Renderer: astro/);
expect(r.stdout).toMatch(/template:\s+templates\/astro/);
});

it("exits non-zero on an unknown renderer", () => {
const r = run(["my-app", "--renderer", "does-not-exist", "--dry-run"]);
expect(r.exitCode).not.toBe(0);
Expand Down
20 changes: 15 additions & 5 deletions scripts/setup-project.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ templates/
├── shared/ # Framework-agnostic configs (used by all project types)
├── nextjs/ # Next.js-specific configs
├── vite/ # Vite-specific configs
├── astro/ # Astro hybrid-islands starter (React islands + Tailwind)
├── vue/ # Vue 3 + Vite configs
├── sveltekit/ # SvelteKit configs
├── expo/ # Expo + React Native configs
Expand Down
Loading