Skip to content

Comments

feat: v0.1.0 — CLI, Vite/Nuxt support, bug fixes, test overhaul#4

Open
rubenmarcus wants to merge 2 commits intomainfrom
feat/v0.1.0-improvements
Open

feat: v0.1.0 — CLI, Vite/Nuxt support, bug fixes, test overhaul#4
rubenmarcus wants to merge 2 commits intomainfrom
feat/v0.1.0-improvements

Conversation

@rubenmarcus
Copy link
Member

Summary

  • CLI: Added npx aeo.js generate|init|check commands with framework auto-detection
  • Vite plugin: Wired up aeo.js/vite export — dev middleware with SPA detection, widget auto-injection, build-time HTML scanning
  • Nuxt module: Wired up aeo.js/nuxt export — defineNuxtModule pattern, pages/ scanning, pre-rendered HTML scanning, client-side widget plugin
  • Vue adapter: Wired up aeo.js/vue export
  • Bug fixes:
    • Astro widget now persists across View Transitions (astro:page-load event)
    • No longer generates empty .md files for pages without content
    • Removed UTF-8 BOM (\uFEFF) from llms.txt / llms-full.txt
  • Config validation: validateConfig() returns warnings for common mistakes (default URL, missing title, invalid URL format)
  • Tests: Rewrote all 12 test files to match actual API — 79/79 tests passing, 0 TypeScript errors
  • README: Updated framework support table, added Vite/Nuxt/CLI quick start docs

Test plan

  • npm run build — 10 entry points (ESM + CJS + DTS), no errors
  • npx vitest run — 12/12 files, 79/79 tests passing
  • npx tsc --noEmit — 0 type errors
  • Manual: test npx aeo.js generate in a sample project
  • Manual: test Vite plugin in a React/Vue app
  • Manual: test Nuxt module in a Nuxt 3 project

🤖 Generated with Claude Code

…verhaul

- Add CLI (npx aeo.js generate/init/check) with framework auto-detection
- Wire up Vite and Nuxt plugins in package.json exports + tsup build
- Fix Astro widget disappearing on View Transitions (use astro:page-load)
- Fix empty .md files generated for pages without content
- Remove UTF-8 BOM from generated llms.txt / llms-full.txt
- Add validateConfig() with warnings for common misconfigurations
- Rewrite all 12 test files to match actual API (79/79 tests passing)
- Update README with Vite, Nuxt, CLI docs and framework support table

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

- Add aeo.js/angular export with postBuild() and generate() functions
- Reads angular.json to auto-detect output directory (v17+ browser/ path)
- Scans *.routes.ts files and component directories for route discovery
- Scans pre-rendered HTML from build output for full page content
- Auto-injects widget into index.html during postBuild
- Add 8 tests covering postBuild, generate, widget injection, route scanning
- Update README with Angular quick start and framework table

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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