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

feat: typescript #246

Closed
wants to merge 42 commits into from
Closed

feat: typescript #246

wants to merge 42 commits into from

Conversation

knownasilya
Copy link
Contributor

@knownasilya knownasilya commented Oct 15, 2022

Closes #239

@knownasilya knownasilya force-pushed the typescript branch 2 times, most recently from c76e0b0 to 762cc33 Compare October 15, 2022 16:36
@knownasilya knownasilya marked this pull request as ready for review October 15, 2022 16:36
addon/package.json Outdated Show resolved Hide resolved
addon/package.json Outdated Show resolved Hide resolved
@knownasilya knownasilya force-pushed the typescript branch 2 times, most recently from 5d2195e to adef064 Compare October 15, 2022 19:21
@knownasilya
Copy link
Contributor Author

I think this is ready?

@knownasilya knownasilya requested review from bertdeblock and removed request for NullVoxPopuli and chriskrycho October 20, 2022 13:28
@chriskrycho
Copy link
Contributor

I'll take a look this week!

Copy link
Contributor

@chriskrycho chriskrycho left a 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. 😅

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
addon/src/helpers/page-title.ts Outdated Show resolved Hide resolved
addon/src/services/page-title.ts Outdated Show resolved Hide resolved
addon/src/services/page-title.ts Outdated Show resolved Hide resolved
addon/src/services/page-title.ts Outdated Show resolved Hide resolved
addon/tsconfig.json Show resolved Hide resolved
@chriskrycho
Copy link
Contributor

@knownasilya can you poke at the failing CI stuff?

leepfrog and others added 17 commits August 3, 2023 15:46
- 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
@knownasilya
Copy link
Contributor Author

@NullVoxPopuli @chriskrycho just waiting on a review to get this across the finish line.

Copy link
Contributor

@NullVoxPopuli NullVoxPopuli left a 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']
Copy link
Contributor

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,
Copy link
Contributor

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,
Copy link
Contributor

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();
Copy link
Contributor

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/
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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',
Copy link
Contributor

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(),
Copy link
Contributor

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, {
Copy link
Contributor

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

@knownasilya
Copy link
Contributor Author

@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.

@knownasilya
Copy link
Contributor Author

@bertdeblock if you have time to address feedback feel free to pr against this branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking this will be a breaking change, and a new major version should be released Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert to TS or supply ambient definitions
5 participants