Skip to content

Adding schematics short alias to angular.json #13918

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

Closed
jlguenego opened this issue Mar 14, 2019 · 5 comments
Closed

Adding schematics short alias to angular.json #13918

jlguenego opened this issue Mar 14, 2019 · 5 comments
Labels
area: @angular/cli feature: insufficient votes Label to add when the not a sufficient number of votes or comments from unique authors feature Issue that requests a new feature
Milestone

Comments

@jlguenego
Copy link

🚀 Feature request

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ X] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

ng g @someorg/somepackage:some-long-schematic my-name
This is a long and tedious command.

Describe the solution you'd like

I propose
ng g some-schematic my-name

With a angular.json containing:

{
   "cli": {
        "schematicsAliases": [{
             "name": "some-schematic",
             "reference": "@someorg/somepackage:some-long-schematic"
        }]
   }
//...
}

Describe alternatives you've considered

List of collections where it is not necessary to provide the package name.
The ng utility would take the first schematic that is encountered in the collection list.

{
   "cli": {
        "defaultCollection ": ["@someorg/package1", "@otherorg/package2"]
   }
//...
}
@alan-agius4 alan-agius4 added the feature Issue that requests a new feature label Mar 14, 2019
@ngbot ngbot bot added this to the Backlog milestone May 25, 2020
@jgu7man
Copy link

jgu7man commented Jul 22, 2021

Still no way to do it or alternative?

@angular-robot angular-robot bot added the feature: votes required Feature request which is currently still in the voting phase label Feb 1, 2022
@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 1, 2022

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

@ngbot ngbot bot modified the milestones: Backlog, needsTriage Feb 1, 2022
@angular-robot
Copy link
Contributor

angular-robot bot commented Feb 21, 2022

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.

@angular-robot angular-robot bot added feature: insufficient votes Label to add when the not a sufficient number of votes or comments from unique authors and removed feature: votes required Feature request which is currently still in the voting phase labels Feb 21, 2022
@alan-agius4
Copy link
Collaborator

Lets continue tracking this issue #12157

@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 Apr 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular/cli feature: insufficient votes Label to add when the not a sufficient number of votes or comments from unique authors feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

3 participants