Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding schematics short alias to angular.json #13918

Open
jlguenego opened this Issue Mar 14, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@jlguenego
Copy link

jlguenego commented Mar 14, 2019

馃殌 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"]
   }
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.