Skip to content

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

Merged
merged 2 commits into from
Sep 13, 2018

Conversation

devversion
Copy link
Member

  • 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)

@devversion devversion added pr: merge safe target: major This PR is targeted for the next major release labels Sep 10, 2018
@devversion devversion requested a review from amcdnl as a code owner September 10, 2018 13:10
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 10, 2018
@@ -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?"
Copy link
Member

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.

Copy link
Member Author

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?"
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@devversion devversion force-pushed the feat/ng-add-x-prompts branch from f398bf5 to b4f76f3 Compare September 10, 2018 14:59
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Sep 10, 2018
@ngbot
Copy link

ngbot bot commented Sep 10, 2018

I see that you just added the pr: merge ready label, but the following checks are still failing:
    failure status "ci/circleci: build" is failing

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@jelbourn
Copy link
Member

CircleCI flake?

@devversion
Copy link
Member Author

devversion commented Sep 10, 2018

Not sure. There isn't really anything in this PR that affects the @nodejs//:npm execution.

@jelbourn
Copy link
Member

Just repush? (rerunning directly on circle ci is... problematic)

@devversion devversion force-pushed the feat/ng-add-x-prompts branch from b4f76f3 to ceba8db Compare September 11, 2018 11:45
@devversion
Copy link
Member Author

devversion commented Sep 11, 2018

@jelbourn Yeah fixed now. I was mobile yesterday and couldn't repush, so I just tried rerunning.

@jelbourn
Copy link
Member

@devversion just needs rebase

@ngbot
Copy link

ngbot bot commented Sep 11, 2018

Hi @devversion! This PR has merge conflicts due to recent upstream merges.
Please help to unblock it by resolving these conflicts. Thanks!

* 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`)
@devversion devversion force-pushed the feat/ng-add-x-prompts branch from ceba8db to aa4eb90 Compare September 12, 2018 09:49
@devversion
Copy link
Member Author

@jelbourn Done.

@jelbourn jelbourn merged commit a5bc79c into angular:master Sep 13, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants