Ignore the repository-root .angular build cache directory
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 970
- Forks
- 486
- Avg merge
- 3d 33m
- Merged PRs (30d)
- 170
Description
Description
An Angular build that starts from the repository root writes its build cache to /.angular/cache instead of /core-web/.angular/cache, and the root path is not ignored. The result is a 60 MB directory with roughly 400 untracked files sitting at the top of a clean checkout.
/core-web/.angular/cache has been ignored since the file was written, and core-web/.gitignore also carries .angular. Neither rule matches the root path, because both are anchored under core-web.
This issue covers the ignore rule only. What makes a build resolve its cache to the repository root instead of the Angular workspace is not yet identified: a cache in the correct location dates from 21 August, the root one first appeared on 16 September, and the Maven path is not responsible (core-web/pom.xml and nodejs-parent/pom.xml both pin workingDirectory to the module's own basedir). That investigation is deliberately out of scope here.
Acceptance Criteria
-
/.angular/is ignored at the repository root -
git statusis clean on a checkout that has a root-level.angulardirectory - The existing
/core-web/.angular/cacherule is left untouched
Priority
Low
Additional Context
The directory holds only regenerable build cache, so deleting it has no consequence.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the repository-root ignore file alongside core-web/.gitignore, where the existing Angular cache rule is defined. Add the root-level /.angular/ ignore entry without changing the existing /core-web/.angular/cache rule, then verify that git status is clean when a root .angular directory exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 92/100