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

fix(vite-plugin-angular): remove experimental support for .ng files #869

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

brandonroberts
Copy link
Member

PR Checklist

Please check if 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:

Which package are you modifying?

  • vite-plugin-angular
  • vite-plugin-nitro
  • astro-angular
  • create-analog
  • router
  • platform
  • content
  • nx-plugin
  • trpc

What is the current behavior?

Experimental support for .ng files was enabled through Analog

Closes #

What is the new behavior?

Support for .ng files is removed

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This was experimental in supporting an alternate way of authoring Angular components and directives. Despite various disclaimers, the .ng file associated causes too much confusion that this is an Angular team project that intends to replace the usage of class components in Angular.

[optional] What gif best describes this PR or how it makes you feel?

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit e50a8b0
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/65b3252cc470fd0008c77d43
😎 Deploy Preview https://deploy-preview-869--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit e50a8b0
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/65b3252c76faab0008459558
😎 Deploy Preview https://deploy-preview-869--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for analog-ng-app failed.

Name Link
🔨 Latest commit e50a8b0
🔍 Latest deploy log https://app.netlify.com/sites/analog-ng-app/deploys/65b3252c9985330008aab6a3

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit e50a8b0
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/65b3252cc982a60008712a96
😎 Deploy Preview https://deploy-preview-869--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@alex-okrushko
Copy link

No! It's one of the most exciting features. Please leave it.

@jaredasutton
Copy link

I'm very interested in a digest of the contributors' gathered reflections on this highly public experimentation and the public response that resonated with all of you. I recognize that this closure and its time frame will signal in various directions. I appreciate these discussions as confirming the project's position relative to Angular.

Thanks!

@brandonroberts
Copy link
Member Author

I'm very interested in a digest of the contributors' gathered reflections on this highly public experimentation and the public response that resonated with all of you. I recognize that this closure and its time frame will signal in various directions. I appreciate these discussions as confirming the project's position relative to Angular.

Thanks!

Thanks @jaredasutton!

It seems to be causing more confusion which is not what we want. We proposed it as a method of discussion and a way to experiment outside of pure theory.

We said it was built using Angular underneath but isn't from the Angular team, and people still took it as an Angular team project. So if/when the Angular team does pursue this, there won't be any confusion about existing projects using .ng files.

There's no denying that the idea/concept has momentum though, and we recognize that.

Analog the project isn't going anywhere either.

@tomastrajan
Copy link

A sad news for #Angular & @analogjs with probable drop of .ng experiment which would fit there perfectly and could represent a gateway (or a great first step) on the learning journey for many newcomers!

(and that is besides Analog being a great piece technology optimized for its use-case)

Personally, I think its unfortunate as I perceive it as basically a misunderstanding caused by the framing / tone of the messaging coming mostly form the 3rd party which stirred a lot of intense responses...

@Jordan-Hall
Copy link

A sad news for #Angular & @analogjs with probable drop of .ng experiment which would fit there perfectly and could represent a gateway (or a great first step) on the learning journey for many newcomers!

(and that is besides Analog being a great piece technology optimized for its use-case)

Personally, I think its unfortunate as I perceive it as basically a misunderstanding caused by the framing / tone of the messaging coming mostly form the 3rd party which stirred a lot of intense responses...

I agree with the above; I know it's shocking 😂. The concept of the file is correct. However, my issue is more with the way it was marketed. You've never seen it with Analog authoring, only Angular. Change the file extension and proceed with it as an analogue framework/authoring.

This is nothing new. It's not as if Angular wasn't built to be adopted at its core and modified for different platforms. Look at how NativeScript was built on top of Angular. I think a new file name and clarification that when people from this project engage in any social media collaboration, it states "Analog authoring" and not solely "Angular" (which I believe is the real issue).

@mikezks
Copy link

mikezks commented Jan 26, 2024

@analogjs bot found a violation of project rule definitions.

This PR can not be merged, because it stops innovation.

@Jordan-Hall
Copy link

Actually please merge this! It's only removing it from the angular plugin which is right approach. Move it to analog plugin itself.

@mikezks
Copy link

mikezks commented Jan 26, 2024

Joke aside, I love this experiment. Please continue.

I would even go one step further than @Jordan-Hall. Please publish that as a third-party extension that works as preprocessor for @analogjs AND @angular.

One could even think of a Schematics implementation to convert between the class-based default @angular format and this new markup, functional orientated.

@Jordan-Hall
Copy link

No need to make it angular though. Honestly you can leave it. Schematics is still easy to convert people with it being different

@ajitzero
Copy link
Contributor

fwiw, we could rename *.ng to *.analog and retain this feature for whoever wants it 🥺

(or move it to an independent @analog/sfc plugin if that's more reasonable)

@Jordan-Hall
Copy link

fwiw, we could rename *.ng to *.analog and retain this feature for whoever wants it 🥺

(or move it to an independent @analog/sfc plugin if that's more reasonable)

Exactly that's all I think most of us was saying

@ilirbeqirii
Copy link
Contributor

I learned a lot only just by reading the source code that made possible the new .ng format in Analog, and I liked it.

Wished this PR was opened on the 1st of April.

Hope you guys just remove "experimental" part of this format, and not entirely

@Jordan-Hall
Copy link

Jordan-Hall commented Jan 26, 2024

fwiw, we could rename *.ng to *.analog and retain this feature for whoever wants it 🥺

(or move it to an independent @analog/sfc plugin if that's more reasonable)

I'm working on making for that a PR. Think what most forgot the lang suggested for template allowed just markdown for simple template

@brandonroberts
Copy link
Member Author

@Jordan-Hall thanks, but no need for a PR. We've stated that we're not trying to reinvent the Angular compiler. If we move forward, it will be in a different direction.

@Jordan-Hall
Copy link

What you mean by different direction? Noticed you never removed the code to compile here just prevent people from seeing it. Kinda don't see how this is reinventing the compiler for angular

@brandonroberts brandonroberts merged commit 6f59c0c into main Jan 26, 2024
19 of 23 checks passed
@brandonroberts brandonroberts deleted the remove-ng-support branch January 26, 2024 15:53
@kattsushi
Copy link

:'(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants