angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Adding schematics short alias to angular.json

Open jlguenego opened this issue 7 years ago • 5 comments

🚀 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"]
   }
//...
}

jlguenego avatar Mar 14 '19 11:03 jlguenego

Still no way to do it or alternative?

jgu7man avatar Jul 22 '21 13:07 jgu7man

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.

angular-robot[bot] avatar Feb 01 '22 18:02 angular-robot[bot]

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[bot] avatar Feb 21 '22 13:02 angular-robot[bot]

Lets continue tracking this issue https://github.com/angular/angular-cli/issues/12157

alan-agius4 avatar Mar 03 '22 15:03 alan-agius4

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.