typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
109 stars 51 forks source link

Use `content-tag` instead of `ember-template-imports` #655

Closed NullVoxPopuli closed 6 months ago

NullVoxPopuli commented 10 months ago

ember-template-imports @ v4 removed all the APIs that glint was relying on for working with <template>-tags

Resolves: https://github.com/typed-ember/glint/issues/609 Resolves: https://github.com/typed-ember/glint/issues/706 Resolves: https://github.com/typed-ember/glint/issues/694 Blocked by: https://github.com/embroider-build/content-tag/issues/19 Blocked by: https://github.com/embroider-build/content-tag/pull/31

Unblocks: https://github.com/NullVoxPopuli/polaris-starter/pull/11 Supersedes: https://github.com/typed-ember/glint/pull/615

Extractions:

Allows:

NullVoxPopuli commented 9 months ago

I'm marking as ready for review, as I think this is about at the point, where I want to make sure I'm not doing anything crazy.

There is still a failing test: https://github.com/typed-ember/glint/actions/runs/7254626609/job/19763687113?pr=655#step:6:107 which... I have no idea how this code affects the reporting of untyped {{component}} usage, since in the "debug extension" thing, the 4 use cases all error correctly (as expected).

cc @dfreeman @wagenet @gitKrystan

Some things left for this PR tho:

lifeart commented 8 months ago

I like this changes! We definitely need to push it forward and land it! Works just fine inside custom glint env https://github.com/lifeart/glimmer-next/tree/master/glint-environment-gxt