feat(cli): Add ui5 cache clean command - #1455
Open
d3xter666 wants to merge 48 commits into
Open
Conversation
d3xter666
marked this pull request as draft
July 17, 2026 06:34
d3xter666
force-pushed
the
feat/clean-cache-command
branch
from
July 20, 2026 07:13
2195d0e to
979a629
Compare
d3xter666
force-pushed
the
feat/clean-cache-command
branch
2 times, most recently
from
July 21, 2026 13:34
f332519 to
89e915f
Compare
d3xter666
force-pushed
the
feat/clean-cache-command
branch
2 times, most recently
from
July 22, 2026 09:23
e35f673 to
af2b848
Compare
d3xter666
marked this pull request as ready for review
July 22, 2026 11:20
d3xter666
force-pushed
the
feat/clean-cache-command
branch
2 times, most recently
from
July 22, 2026 11:32
db2912e to
c4e20b3
Compare
d3xter666
marked this pull request as draft
July 22, 2026 11:41
d3xter666
force-pushed
the
feat/clean-cache-command
branch
2 times, most recently
from
July 23, 2026 06:29
5c27a35 to
bcaa7fa
Compare
d3xter666
marked this pull request as ready for review
July 23, 2026 06:57
matz3
reviewed
Jul 23, 2026
d3xter666
force-pushed
the
feat/clean-cache-command
branch
from
July 23, 2026 12:35
301caa6 to
0e631fa
Compare
Member
|
Note: When I run |
matz3
reviewed
Jul 27, 2026
d3xter666
force-pushed
the
feat/clean-cache-command
branch
4 times, most recently
from
July 28, 2026 14:24
c64c2c4 to
f8d5412
Compare
Adds `ui5 cache clean` to remove framework packages and build cache data. Displays what will be removed with library/version stats, asks for confirmation (skip with --yes), and handles orphaned staging dirs from previously interrupted cleans. No process-coordination locks — that will be added separately.
We need to export the cache clean modules for internal usage in the @ui5/cli package. This functionality needs to stay internal to the project and that's why we are not exposing the JSDoc API for these modules.
d3xter666
force-pushed
the
feat/clean-cache-command
branch
from
July 28, 2026 14:32
c25d6e8 to
1108035
Compare
matz3
reviewed
Jul 28, 2026
d3xter666
force-pushed
the
feat/clean-cache-command
branch
from
July 28, 2026 17:42
1108035 to
90c1263
Compare
d3xter666
force-pushed
the
feat/clean-cache-command
branch
from
July 29, 2026 07:01
eb5321d to
9fb4993
Compare
The non-verbose mode is mostly silent, except for the confirmation prompt and the warning message. With --force flag the cache cleanup is silent
Current confirmation does not fit well for non-verbose mode. It needs a bit more details. With that change we provide more context during the confirmation prompt.
d3xter666
force-pushed
the
feat/clean-cache-command
branch
from
July 29, 2026 12:23
ca87570 to
79e7401
Compare
matz3
reviewed
Jul 29, 2026
matz3
reviewed
Jul 29, 2026
| } | ||
|
|
||
| if (sections.length === 0) { | ||
| process.stderr.write(`\n${chalk.italic(PARALLEL_CLEANUP_NOTICE)}\n\n`); |
Member
There was a problem hiding this comment.
Why are here, and in other places two additional new-lines, and in case of a success only one? I wonder why two should be needed, but I think this should be consistent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a new ui5 cache clean command to provide a safe, first-class cache cleanup workflow.
Why
Manual cache directory deletion is error-prone and inconvenient for CI/scripted usage.
What changed
Output behavior
JIRA: CPOUI5FOUNDATION-891