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(angular): use helper to determine project name and root directory in project generators #18607

Merged

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Aug 14, 2023

Updates the Angular plugin project generators (application, host, remote and library) to use the helper to determine the project name and root.

For more context on the changes, see: #18420

Current Behavior

Expected Behavior

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Aug 14, 2023
@vercel
Copy link

vercel bot commented Aug 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 17, 2023 3:09pm

@leosvelperez leosvelperez marked this pull request as ready for review August 14, 2023 09:09
@leosvelperez leosvelperez requested review from a team as code owners August 14, 2023 09:09
@leosvelperez leosvelperez force-pushed the angular/library-use-name-root-helper branch from f0424db to f52861e Compare August 14, 2023 10:23
@leosvelperez leosvelperez changed the title feat(angular): provide a new way of generating project name and root directory for libraries feat(angular): use helper to determine project name and root directory in library generator Aug 14, 2023
e2e/angular-core/src/projects.test.ts Outdated Show resolved Hide resolved
@@ -571,7 +571,7 @@ describe('lib', () => {
it('should accept numbers in the path', async () => {
await runLibraryGeneratorWithOpts({ directory: 'src/1-api' });

expect(readProjectConfiguration(tree, 'src-api-my-lib').root).toEqual(
expect(readProjectConfiguration(tree, 'src-1-api-my-lib').root).toEqual(
Copy link
Collaborator

Choose a reason for hiding this comment

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

How come this changed?

Copy link
Member Author

Choose a reason for hiding this comment

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

We used to have a restriction on numbers which no longer applies. This applied only to Angular projects, but it doesn't anymore.

@leosvelperez leosvelperez force-pushed the angular/library-use-name-root-helper branch from f52861e to cd023cb Compare August 16, 2023 10:56
@leosvelperez leosvelperez requested a review from a team as a code owner August 16, 2023 10:56
@leosvelperez leosvelperez changed the title feat(angular): use helper to determine project name and root directory in library generator feat(angular): use helper to determine project name and root directory in project generators Aug 16, 2023
Copy link
Contributor

@meeroslav meeroslav left a comment

Choose a reason for hiding this comment

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

Docs changes look ok

@leosvelperez leosvelperez force-pushed the angular/library-use-name-root-helper branch from f06619f to e6c7da8 Compare August 17, 2023 14:30
@leosvelperez leosvelperez merged commit 47f8b7a into nrwl:master Aug 17, 2023
3 checks passed
@leosvelperez leosvelperez deleted the angular/library-use-name-root-helper branch August 17, 2023 15:27
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
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