-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: typescript #246
feat: typescript #246
Conversation
406ef68
to
a755354
Compare
c76e0b0
to
762cc33
Compare
762cc33
to
10ef2dd
Compare
10ef2dd
to
07deadc
Compare
5d2195e
to
adef064
Compare
I think this is ready? |
I'll take a look this week! |
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.
Thanks for working on this! Had a number of tweaks to make, but this is a good step toward publishing these! And sorry for the long delay in reviewing. 😅
@knownasilya can you poke at the failing CI stuff? |
- package.json: add `--bundleConfigAsCjs` to `rollup` - rollup.config.js: rename to rollup.config.mjs (as instructed from warning message) Renamed rollup.config.js to rollup.config.mjs - Updated rollup package to latest version - Added `--bundle
… call - test-app/config/ember-try: remove support for ember 3 & ember 4 lts versions - test-app/package.json: update ember-source and ember-resolver versions
- Fix ember-source version - Change `Owner` import to type import
- test-app/tests: refactor to use strictEqual instead of equal - test-app/package.json: remove unused dependencies
- docs/package.json: update ember-source version, add @ember/strings
- addon/src/services/page-title: add conditional import for getOwner depending on ember version - test-app/config/ember-try: add ember 4.8 lts configuration to test list
@NullVoxPopuli @chriskrycho just waiting on a review to get this across the finish line. |
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.
close! just some details to take care of
@@ -34,13 +34,13 @@ jobs: | |||
matrix: | |||
os: [ubuntu-latest] | |||
browser: [chrome, firefox] | |||
node: ['14', '16', '18'] |
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.
making note of braking change: dropping node 14
nevermind, this isn't a breaking change.
ember-page-title is a v2 addon so testing against node doesn't matter.
We could have gotten rid of the whole node matrix here
ember-release, | ||
ember-beta, | ||
ember-classic, |
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.
dropping support for ember-classic
ember-release, | ||
ember-beta, | ||
ember-classic, | ||
embroider-safe, |
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.
why was embroider removed? can we add them back?
}, | ||
], | ||
}); | ||
return app.toTree(); |
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.
why'd we get rid of embroider here?
@@ -15,6 +15,7 @@ | |||
!.* | |||
.*/ | |||
.eslintcache | |||
/dev-only-types/ |
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.
v2-addon convention is unpublished-development-types
, fwiw
@@ -242,37 +316,52 @@ export default class PageTitleService extends Service { | |||
* Find token by id | |||
* | |||
* IE11 compatible approach due to lack of Array.find support | |||
* TODO: Remove when we drop support for Ember 3.28 |
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.
can you open an issue about this, so we don't forget?
// But fallback for type-overrides and such | ||
"*": ["dev-only-types/*"] | ||
}, | ||
"skipLibCheck": true |
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.
why skipLibCheck?
@@ -2,12 +2,15 @@ | |||
|
|||
module.exports = { | |||
root: true, | |||
parser: 'babel-eslint', | |||
parser: '@babel/eslint-parser', |
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.
test app isn't using TS?
}, | ||
}, | ||
}, | ||
embroiderSafe(), |
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.
let's bring these back
}); | ||
|
||
const { maybeEmbroider } = require('@embroider/test-setup'); | ||
return maybeEmbroider(app, { |
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.
let's bring back embroider
@leepfrog I don't have time to address this feedback today. If you have time feel free to do that, otherwise I'll tackle it later this week. |
@bertdeblock if you have time to address feedback feel free to pr against this branch |
Closes #239