-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Introduced Glint to ember-welcome-page #395
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type WelcomePageComponent from './components/welcome-page'; | ||
|
||
export default interface EmberWelcomePageRegistry { | ||
WelcomePage: typeof WelcomePageComponent; | ||
'welcome-page': typeof WelcomePageComponent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The {{! With the component helper }}
{{component "welcome-page"}}
{{! Curly-brace syntax }}
{{welcome-page}} If we want to allow only the angle bracket syntax |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{ | ||
"extends": "@tsconfig/ember/tsconfig.json", | ||
"include": ["src/**/*"] | ||
"include": [ | ||
"src/**/*", | ||
"unpublished-development-types/**/*" | ||
], | ||
Comment on lines
+3
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy-pasted from the TypeScript project that |
||
"glint": { | ||
"environment": "ember-loose" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Add any types here that you need for local development only. | ||
// These will *not* be published as part of your addon, so be careful that your published code does not rely on them! | ||
|
||
import '@glint/environment-ember-loose'; | ||
|
||
declare module '@glint/environment-ember-loose/registry' { | ||
// Remove this once entries have been added! 👇 | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export default interface Registry { | ||
// Add any registry entries from other addons here that your addon itself uses (in non-strict mode templates) | ||
// See https://typed-ember.gitbook.io/glint/using-glint/ember/using-addons | ||
} | ||
} | ||
Comment on lines
+1
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy-pasted from the TypeScript project that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note, a Glint user must install
@glimmer/component
with version1.1.2
or higher. Fortunately, the latest version ofember-cli
already installsv1.1.2
.The version requirement does not affect non-Glint users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional notes since we want to support Ember 3.28 LTS:
ember-cli@v3.28.6
lists"@glimmer/component": "^1.0.4"
in itspackage.json
.https://github.com/ember-cli/ember-cli/blob/v3.28.6/blueprints/app/files/package.json#L31