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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): change generate --prefix option type from Boolean to string #3457

Merged
merged 4 commits into from
Dec 15, 2016

Conversation

nweldev
Copy link
Contributor

@nweldev nweldev commented Dec 7, 2016

Use ng g c foo --prefix='bar' or ng g d foo --prefix='bar' in order to use
another prefix than the one defined by default in angular-cli.json apps[0].prefix

Any other options (--no-prefix or --prefix, without any value, using the default one in angular-cli.json) still work as expected and documented.

Tslint rules "directive-selector" and "component-selector" can accept any array of prefix, and is therefore compatible with this approach.

This could be a first solution to #3452.

use ``ng g c foo --prefix='bar'`` or ``ng g d foo --prefix='bar'`` in order to use
another prefix than the one defined by default in angular-cli.json apps[0].prefix
tslint rules "directive-selector" and "component-selector" can accept any array of prefix,
and is therefore compatible with this approach
this is a temporary solution pending angular#3452 closure
@nweldev
Copy link
Contributor Author

nweldev commented Dec 8, 2016

This is my first PR on angular-cli, and I don't understand for now why CI is not passing ... I ran all tests with npm test and everything was ok ... If someone could tell me what should I do to correct this, or if I missed some points about angular-cli testing ... Thanks.

@filipesilva
Copy link
Contributor

@noelmace CI broke due to something else but it should be fixed soon in #3465.

@Brocco can you review?

nweldev referenced this pull request in nweldev/angular-cli Dec 14, 2016
…ectives prefix

This is not the final commit ! We still need to find an agreement on which solution
to use between exported constants and comments, then, if the first one is choosed,
move the associated code to utilities (see TODOs) and make the associated UTs.

see angular#3452
@nweldev nweldev mentioned this pull request Dec 14, 2016
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@Brocco Brocco merged commit 8d5a915 into angular:master Dec 15, 2016
@Brocco
Copy link
Contributor

Brocco commented Dec 15, 2016

Thanks @noelmace!!!

MRHarrison pushed a commit to MRHarrison/angular-cli that referenced this pull request Feb 9, 2017
…string (angular#3457)

use ``ng g c foo --prefix='bar'`` or ``ng g d foo --prefix='bar'`` in order to use
another prefix than the one defined by default in angular-cli.json apps[0].prefix
tslint rules "directive-selector" and "component-selector" can accept any array of prefix,
and is therefore compatible with this approach
this is a temporary solution pending angular#3452 closure
@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 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants