Repository navigation
Conversation
npm create treats -t as --tag, so the type was passed as a second positional and Commander failed. Also prompt when type is omitted. Closes keycloak#54227 Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Closing stdin during the prompt exits successfully without creating a project.
1 open issue
What changed in this PR
Updates the theme generator to accept a positional theme type, addressing #54227 and npm’s handling of -t.
Changes:
- Accepts positional types and prompts when none is supplied.
- Updates documentation and help examples.
- Propagates template clone failures.
| File | Description |
|---|---|
| js/apps/create-keycloak-theme/README.md | Documents positional types and npm-compatible options. |
| js/apps/create-keycloak-theme/create.js | Adds type parsing, prompting, help updates, and clone error propagation. |
Review effort: Balanced
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The documented admin workflow cannot resolve @keycloak/keycloak-admin-ui because the generated project installs only the account UI and uses the account-specific development command.
1 open issue
1 resolved since last review
Review effort: Balanced
| ``` | ||
|
|
||
| This will create a new project called `my-project` with an account ui based on the template from the quickstarts repo. | ||
| This will create a new project called `my-project` with an admin ui based on the template from the quickstarts repo. |
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.


npm create treats -t as --tag, so the type was passed as a second
positional and Commander failed. Also prompt when type is omitted.
Closes #54227
Signed-off-by: Erik Jan de Wit erikjan.dewit@gmail.com