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

.gjs conversion #440

Merged
merged 52 commits into from
Oct 10, 2023
Merged

.gjs conversion #440

merged 52 commits into from
Oct 10, 2023

Conversation

Windvis
Copy link
Contributor

@Windvis Windvis commented Oct 5, 2023

This sets up ember-template-imports and converts most components to .gjs files.

Github doesn't have syntax highlighing support for .gjs yet since it requires a certain amount of files in (public?) repos. With this change we're helping a bit 馃槃.

This is an internal change, consumers shouldn't notice anything different and if they do it's most likely a bug.

@Windvis Windvis marked this pull request as ready for review October 9, 2023 15:53
@Windvis
Copy link
Contributor Author

Windvis commented Oct 9, 2023

The linting faillure is because of node 14.. We should bump it to 18 for the dev / CI setup and fix issues for node 14 when we run into them (until the next major, which should be released in the near future).

Edit: Resolved by #441

@Windvis
Copy link
Contributor Author

Windvis commented Oct 10, 2023

It seems there is an issue with accidental leading and trailing whitespace due to the conversion. I'm trying to figure out what the best way to deal with this is.

Edit: I went with the {{~!~}} workaround but it logs messages when building the app, so not perfect either.

We were using this but didn't list this as a dependency yet. It only worked until now because an other addon brings it in.
This version includes a new convenience import which is nice when we use it in .gjs files.
This adds new import paths for all public (non-deprecated) components and modifiers. This makes it easier to use from .gjs components.
We also inlined the `au-props` modifier since we don't use it in other component and we considered it a private modifier.
This also allows us to remove the (private) legend and content components since we can now define them in the parent component file and make them truly private.
This has the benefit that the private child components can now be inlined so they are really private.
This also allows us to inline the `AuNavigationNarrator` component.
This also allows us to inline the private body and footer components.
The named export from `@ember/component` didn't exist until v4.1 so we fall back to the internal import path on older Ember versions.
@Windvis Windvis added the internal Used for internal changes that still require a mention in the changelog/release notes. label Oct 10, 2023
@Windvis Windvis merged commit 4e9d878 into master Oct 10, 2023
13 checks passed
@Windvis Windvis deleted the chore/gjs-support branch October 10, 2023 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Used for internal changes that still require a mention in the changelog/release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant