Repository navigation
feat(filters): Angular CLI output optimization for ng build, ng serve, and modern ng test #4240
PranavBilurkar
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Title:
feat(filters): Angular CLI output optimization for ng build, ng serve, and modern ng testSummary
RTK already does a great job reducing noisy CLI output before it reaches an AI coding agent's context. Angular projects look like a useful next area for first-class support because Angular CLI commands can produce build, compiler, test-runner, and dev-server output that is highly repetitive for an agent.
I found the existing issue for Angular Karma support: #2849 (Angular Karma
ng testbuilt-in filter/rewrite support). Rather than duplicate that scope, this issue proposes broader Angular CLI coverage focused on:ng buildng serveng testoutput (Vitest)Why this is useful
For an AI coding agent, the high-value Angular signal is usually much smaller than the raw CLI output:
The goal would be to preserve that signal while removing repetitive banners, progress output, and unchanged/pass noise.
Proposed commands
1.
rtk ng buildPossible compact failure output:
For successful builds, retain a concise summary such as:
2.
rtk ng testAngular's current default testing stack uses Vitest, while many existing projects still use Karma.
For Vitest, RTK could retain the existing failure-focused philosophy:
This would complement the existing Karma issue (#2849) rather than replace it.
3.
rtk ng serveThis is a long-running command, so a streaming filter would be preferable rather than a post-process filter.
For example:
The intent is to preserve meaningful rebuild/build failures while suppressing repeated dev-server and bundler noise.
Invocation / rewrite coverage
It would be useful for the routing layer to recognize common Angular CLI forms such as:
The existing Angular Karma issue already calls out path-based
.bin/ng testand package-script invocation as important cases.Implementation direction
This seems to fit RTK's existing architecture without introducing a new model or filtering layer.
Possible approach:
ngsubcommands to dedicated handlers/filtersng buildng test, with separate handling for Vitest/Karma as neededng serveSuggested initial scope
rtk ng buildrtk ng test(Vitest)rtk ng serveKeep Angular Karma work under #2849.
Acceptance criteria
ng buildcan be transparently routed through RTK and produce a compact, information-preserving resultng test(Vitest) can be routed through RTK with failures prioritizedng servesupports streaming output filtering without hiding important rebuild failuresng/yarn ng/.bin/ngforms are recognized where appropriateng test) built-in filter and rewrite support #2849 remains the source of truth for Karma-specific behaviorI think Angular is a good ecosystem extension for RTK because the opportunity is not just removing lines; the CLI output has enough structure to produce much more useful agent-facing summaries while keeping the underlying commands unchanged.
All reactions