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

Allow ember-cli-htmlbars-inline-precompile 2.x and 1.x #481

Merged

Conversation

mydea
Copy link
Contributor

@mydea mydea commented Nov 21, 2018

See #468

This PR allows ember-cli-htmlbars-inline-precompile 2.x as well as 1.x, to continue supporting Ember <= 2.12.

@mydea
Copy link
Contributor Author

mydea commented Nov 21, 2018

Hmm, not entirely sure how to get the tests to pass - any pointers?

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Will need to add entries to all ember-try scenarios that need 1.x (where ember is older than 2.12) to override and force it to use ^1.0.5.

@mydea
Copy link
Contributor Author

mydea commented Nov 21, 2018

Hmm, that fixes the 2.12 test, but not the ones before that.. not sure what the cause is there, any ideas?

@@ -24,6 +24,7 @@ module.exports = function() {
},
npm: {
devDependencies: {
'ember-cli-htmlbars-inline-precompile': '~1.0.5',
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs to be moved to dependencies (not devDependencies), otherwise we would have dependencies of 2.0.0 and devDependencies of 1.0.5 and my guess is that yarn chooses dependencies to "win" over dev deps.

Also can you change these to ^1.0.5

@@ -68,6 +71,7 @@ module.exports = function() {
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-cli-htmlbars-inline-precompile': '~1.0.5',
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need any modification to this one (since 2.12 already comes from npm and is supported by 2.0.0 of ember-cli-htmlbars-inline-precompile).

@mydea mydea force-pushed the ember-cli-htmlbars-inline-precompile-versions branch from 183bb45 to acd2bda Compare November 22, 2018 07:28
@mydea
Copy link
Contributor Author

mydea commented Nov 22, 2018

Yeah, that did the tick - I added it to dependencies instead, now all tests pass!

@rwjblue
Copy link
Member

rwjblue commented Nov 26, 2018

Thank you @mydea!

@rwjblue rwjblue merged commit b756d53 into emberjs:master Nov 26, 2018
@rwjblue rwjblue added the bug label Dec 7, 2018
rwjblue added a commit to rwjblue/ember-qunit that referenced this pull request Dec 10, 2018
\#### 🚀 Enhancement
* [emberjs#498](emberjs/ember-test-helpers#498) Add ability to opt-out of automatic settledness waiting in teardown. ([@rwjblue](https://github.com/rwjblue))

\#### 🐛 Bug Fix
* [emberjs#497](emberjs/ember-test-helpers#497) Only customize RSVP's async for Ember older than 1.7. ([@rwjblue](https://github.com/rwjblue))
* [emberjs#481](emberjs/ember-test-helpers#481) Allow ember-cli-htmlbars-inline-precompile 2.x and 1.x ([@mydea](https://github.com/mydea))

\#### 🏠 Internal
* [emberjs#491](emberjs/ember-test-helpers#491) TravisCI: Remove deprecated `sudo: false` option ([@Turbo87](https://github.com/Turbo87))
* [emberjs#480](emberjs/ember-test-helpers#480) Extract Prettier configuration to .prettierrc.js file. ([@rwjblue](https://github.com/rwjblue))
* [emberjs#463](emberjs/ember-test-helpers#463) Improve type declarations ([@Turbo87](https://github.com/Turbo87))

\#### Committers: 4
- Francesco Novy ([@mydea](https://github.com/mydea))
- Peter Wagenet ([@wagenet](https://github.com/wagenet))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
- Tobias Bieniek ([@Turbo87](https://github.com/Turbo87))
@mydea mydea deleted the ember-cli-htmlbars-inline-precompile-versions branch July 19, 2021 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants