-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(ng-add): add x-prompts to install schematics #13058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -19,12 +19,14 @@ | |||
"theme": { | |||
"enum": ["indigo-pink", "deeppurple-amber", "pink-bluegrey", "purple-green", "custom"], | |||
"default": "indigo-pink", | |||
"description": "The theme to apply" | |||
"description": "The theme to apply", | |||
"x-prompt": "What theme would you like to generate?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
Enter a prebuilt theme name, or "custom" for a custom theme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds better. Updated.
}, | ||
"gestures": { | ||
"type": "boolean", | ||
"default": true, | ||
"description": "Whether gesture support should be set up or not." | ||
"description": "Whether gesture support should be set up or not.", | ||
"x-prompt": "Would you like to set up gesture support?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about
Add HammerJs for gesture recognition?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
f398bf5
to
b4f76f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
CircleCI flake? |
Not sure. There isn't really anything in this PR that affects the @nodejs//:npm execution. |
Just repush? (rerunning directly on circle ci is... problematic) |
b4f76f3
to
ceba8db
Compare
@jelbourn Yeah fixed now. I was mobile yesterday and couldn't repush, so I just tried rerunning. |
@devversion just needs rebase |
Hi @devversion! This PR has merge conflicts due to recent upstream merges. |
* Recently the Angular CLI project introduced prompt support for schematics. Even though they seem to not run when using `7.0.0-beta.2` of the CLI, we should already ship the simple prompts for the `ng add` command. * Renames the `/schematics/install` folder to `/schematics/ng-add`. (this makes it consistent with the actual schematic name and other packages that ship the `ng-add` schematic (e.g. `@angular/elements`)
ceba8db
to
aa4eb90
Compare
@jelbourn Done. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
7.0.0-beta.2
of the CLI, we should already ship the simple prompts for theng add
command./schematics/install
folder to/schematics/ng-add
. (this makes it consistent with the actual schematic name and other packages that ship theng-add
schematic (e.g.@angular/elements
)