Skip to content

Conversation

aparzi
Copy link
Contributor

@aparzi aparzi commented Oct 4, 2024

Introduces option --experimental-zoneless to setup workspace or application as zoneless mode.

PR Checklist

Please check to confirm your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Closes #28370

Does this PR introduce a breaking change?

  • Yes
  • No

@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @schematics/angular labels Oct 4, 2024
@aparzi
Copy link
Contributor Author

aparzi commented Oct 4, 2024

Hi @alan-agius4,
Based on the email exchange we had, I created the draft PR, to check the reason why it does not recognize the experimental-zoneless option and possibly give me some feedback and suggestions.

Thanks.

@alan-agius4 alan-agius4 self-requested a review October 7, 2024 06:50
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Thanks for this, overall this looks good.

Would be great if you can also add some UTs.

@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from 8bb8e49 to 68ce3fb Compare October 8, 2024 22:36
@aparzi
Copy link
Contributor Author

aparzi commented Oct 8, 2024

Hi @alan-agius4,
I updated the PR according to the requested changes. I added a test case, the only thing running the command yarn bazel test //packages/schematics/angular:angular_test seems to give the following error:
SyntaxError: Unexpected token ')'.
This however even without writing new test cases, seems to be related to the runSchematic method used in the .spec files

@alan-agius4
Copy link
Collaborator

Hi @alan-agius4, I updated the PR according to the requested changes. I added a test case, the only thing running the command yarn bazel test //packages/schematics/angular:angular_test seems to give the following error: SyntaxError: Unexpected token ')'. This however even without writing new test cases, seems to be related to the runSchematic method used in the .spec files

The problem is that in the templates, you have missing some <%.

@alan-agius4 alan-agius4 added the target: minor This PR is targeted for the next minor release label Oct 9, 2024
@aparzi
Copy link
Contributor Author

aparzi commented Oct 9, 2024

Hi @alan-agius4,
I will adjust the PR as soon as possible. Can you also tell me why when I run the command ng new [angular_project_name] --experimental-zoneless it gives me an error saying that the option is not recognized?

@alan-agius4
Copy link
Collaborator

Can you also tell me why when I run the command ng new [angular_project_name] --experimental-zoneless it gives me an error saying that the option is not recognized?

Likely because you do globally you do not have the local copy

@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from 68ce3fb to c2cbc19 Compare October 9, 2024 21:39
@aparzi aparzi changed the title WIP: feat(@schematics/angular): add option to setup new workspace or appli… feat(@schematics/angular): add option to setup new workspace or appli… Oct 9, 2024
@aparzi aparzi marked this pull request as ready for review October 9, 2024 21:42
@aparzi
Copy link
Contributor Author

aparzi commented Oct 9, 2024

Hi @alan-agius4,
I updated the PR according to the requested changes and some improvements and added the test cases. I'm waiting for news.

Thanks

@aparzi aparzi requested a review from alan-agius4 October 9, 2024 21:47
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution! I’ve provided some feedback for you.

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: global presubmit The PR is in need of a google3 global presubmit and removed action: global presubmit The PR is in need of a google3 global presubmit labels Oct 10, 2024
@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from c2cbc19 to 2c95406 Compare October 10, 2024 15:57
@aparzi aparzi requested a review from alan-agius4 October 10, 2024 15:57
@aparzi
Copy link
Contributor Author

aparzi commented Oct 10, 2024

Hi @alan-agius4,
I updated this PR

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 10, 2024
@aparzi
Copy link
Contributor Author

aparzi commented Oct 11, 2024

@alan-agius4 I believe all request changes done.

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 14, 2024
@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from c5bad57 to d6dec23 Compare October 14, 2024 13:15
@aparzi
Copy link
Contributor Author

aparzi commented Oct 14, 2024

Hi @alan-agius4,
I updated this PR. Let me know if everything is ok.

Many thanks.

@aparzi aparzi requested a review from alan-agius4 October 14, 2024 13:17
Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

thanks, see above.

@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from d6dec23 to b197d6d Compare October 14, 2024 14:53
@aparzi aparzi requested a review from alan-agius4 October 14, 2024 14:53
@aparzi
Copy link
Contributor Author

aparzi commented Oct 14, 2024

Hi @alan-agius4,
I have updated the PR with the requested changes. Sorry for the inconvenience.

Many thanks.

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Thanks, there are still a few issues.

@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from b197d6d to 8efbb42 Compare October 15, 2024 09:03
@aparzi aparzi requested a review from alan-agius4 October 15, 2024 09:05
@aparzi
Copy link
Contributor Author

aparzi commented Oct 15, 2024

Thanks, there are still a few issues.

Ok thanks, I have updated the PR with the requested changes.

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

Thanks again for this, almost there.

@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from 8efbb42 to 93ecc46 Compare October 15, 2024 09:56
@aparzi aparzi requested a review from alan-agius4 October 15, 2024 09:56
@aparzi
Copy link
Contributor Author

aparzi commented Oct 15, 2024

Thanks again for this, almost there.

I think I did everything. I just have doubts about e2e if they pass, I tried to follow what you suggested.

Thanks again.

@aparzi aparzi force-pushed the feat-schematics-experimental-zoneless branch from 93ecc46 to 83f5934 Compare October 15, 2024 11:09
@aparzi
Copy link
Contributor Author

aparzi commented Oct 15, 2024

@alan-agius4
I updated the PR adding the requested change in app.module. To be safe I also added two more test cases, after this change.

Thanks I'm waiting

Copy link
Collaborator

@alan-agius4 alan-agius4 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 15, 2024
@jkrems jkrems removed the request for review from pweyrich October 15, 2024 16:26
@jkrems jkrems merged commit 755f3a0 into angular:main Oct 15, 2024
31 checks passed
@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 Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: @schematics/angular detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to ng new to create a zoneless project.
4 participants