@ngrdt/cli
v0.3.1
Published
Scaffolds Angular 22 projects pre-wired with @ngrdt/* packages.
Readme
@ngrdt/cli
Scaffolds Angular 22 (zoneless) projects pre-wired with @ngrdt/* packages. The Angular major version is centralised in src/util/package-versions.ts (ANGULAR_MAJOR).
Usage
Run directly via npx (there is no standalone ngrdt package on npm — the binary ships with @ngrdt/cli):
npx @ngrdt/cli create my-appOr install globally, which puts the ngrdt bin on your PATH:
npm install -g @ngrdt/cli
ngrdt create my-appThe CLI prompts for project size, whether to use @ngrdt/gov, which additional @ngrdt/* packages to include, i18n, optional features, and post-scaffold actions. Bare (non-gov) projects automatically get a full local UI component library implementing the outlet tokens. The result is a runnable Angular workspace under ./my-app.
Generated applications load src/assets/app.config.json before auth initialization. Its runtime backendUrl feeds all generated API services; ngrdt.config.json.developmentBackendUrl separately controls the /api development proxy target.
Non-interactive usage: ngrdt create my-app --preset=gov --yes, or capture answers with ngrdt config my-app and replay them via ngrdt create --config=./ngrdt.config.json. Add API codegen to an existing project with ngrdt add codegen --openapi=<spec-url>.
Develop
cd @ngrdt/cli && npm run build # typecek compile → tsc → copy static assets
node @ngrdt/cli/dist/bin/ngrdt.js create test-app