Skip to content

feat(vite-plugin-ngp): add routes, library exports and an application schematic to ngp-generate - #150

Merged
ChristopherPHolder merged 1 commit into
mainfrom
feat/generate-follow-ups
Dec 4, 2026
Merged

ChristopherPHolder merged 1 commit into
mainfrom
feat/generate-follow-ups

Conversation

@ChristopherPHolder

Copy link
Copy Markdown
Collaborator

Follow-ups to #139, from the recommendations in that thread.

Docs: Generating code (new Applications and Routes sections, plus the options table and how it differs), Creating an app, Status, the changelog, and decision 85 with its design.md row.

Tests:

  • New unit tests for routes, exports and applications.
  • The app-ssr monorepo test now checks the library index export, generates apps/admin with a routed orders component, runs build:admin, finds the orders- chunk, and expects 6 specs to pass.
  • Locally: 200 plugin tests, 37 create-ngp tests and 33 playground specs pass, and so does docs:check.

Closes #144, closes #145, closes #146

🤖 Generated with Claude Code

… schematic to ngp-generate

- `--route <path>` on a component adds a lazy route to `src/app/app.routes.ts`.
- In a library with `src/index.ts`, generated code is exported from the index, unless `--no-export`.
- `ngp-generate application <name>` writes `apps/<name>` from create-ngp's `app` template and adds
  its dev, build and preview scripts to the top `package.json`. `scripts/application-files.mjs`
  copies the template into the plugin; its `--check` runs in the plugin's tests.

Closes #144, closes #145, closes #146

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ChristopherPHolder

Copy link
Copy Markdown
Collaborator Author

LGTM. I checked:

  • CI is green on 82db001: build and PR title.
  • Locally: 200 plugin tests, 37 create-ngp tests and 33 playground specs pass, and so does docs:check.
  • The monorepo test generates apps/admin with a routed orders component, builds it, finds the lazy orders- chunk, and runs 6 specs.
  • application-files.mjs --check runs in the plugin's tests.
  • Decision 85 is free on main, and ci(workflows): run the packed plugin on windows with the wasm engine #149 already took 86.

@ChristopherPHolder
ChristopherPHolder merged commit 4b82214 into main Dec 4, 2026
2 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

1 participant