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

[v4] allow ember-cli-babel to manage TS transpilation #1018

Merged
merged 2 commits into from
Jan 17, 2020

Conversation

dfreeman
Copy link
Member

Based on a conversation with some typed-ember folks and @rwjblue, our likely plan moving forward is to have ember-cli-babel be responsible for setting up any relevant TypeScript Babel plugin(s) using the presence of ember-cli-typescript as a trigger. The rough sequence of events I'm picturing:

  • a 4.0.0-alpha.1 release of this package that includes this PR to stop touching Babel config on this side
  • a release of ember-cli-babel that looks for ember-cli-typescript >= 4.0.0-alpha and sets up the appropriate plugins if it finds them
  • subsequent updates here to enforce that we're always installed alongside at least that ember-cli-babel version
  • ...
  • ember-cli-typescript@4.0.0 馃帀

Note that this PR is targeting the v4 branch, which we can use as a central point to cut alpha releases and land other changes we want to include in our next major release as we coordinate with ember-cli-babel on the rollout.

@dfreeman
Copy link
Member Author

Note: it's expected (and unavoidable) that CI will fail here until a version of ember-cli-babel exists that does what the code I just deleted would have done

@jamescdavis
Copy link
Member

I've opened a draft PR for the ember-cli-babel side of this: emberjs/ember-cli-babel#314

Copy link
Member

@jamescdavis jamescdavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working great with emberjs/ember-cli-babel#314 when bumped to 4.0.0-alpha.0. We need to make the test changes from #1007, however, so tests will pass once ember-cli-babel is released and we update.

* remove property initialization order test
* upgrade prettier (so it understands class field declarations)
* add test for class field declarations
* enable optional chaining and nullish coalescing test (bonus)
@jamescdavis
Copy link
Member

I've updated the tests. This now passes when yarn linked to emberjs/ember-cli-babel#314 and version bumped to 4.0.0-alpha.0 (or greater).

@jamescdavis jamescdavis merged commit 783b041 into v4 Jan 17, 2020
@delete-merged-branch delete-merged-branch bot deleted the v4-no-babel-plugins branch January 17, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants