Skip to content

breaking: upgrade ember-cli-addon-docs + ember-auto-import + dependencies #720

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

Conversation

ndekeister-us
Copy link

@ndekeister-us ndekeister-us commented Sep 7, 2021

Build

Upgrade ember-cli-addon-docs-xxx dependencies

Upgrade ember-cli-addon-docs and ember-cli-addon-docs-yuidoc to recent versions

Add ember-data as devDependencies to the project

It is now needed by recent versions of ember-cli-addon-docs, see error thrown below when not present
Capture d’écran 2021-09-07 à 22 51 23

Update ember-cli to 3.27

Fix following error
Capture d’écran 2021-09-08 à 01 19 12

Refactor some stuff in the dummy app to fix some lint issues (AngleBrackets etc...)

Breaking

Upgrade to ember-auto-import 2+

Needed as ember-cli-addon-docs is now using ember-auto-import@2, otherwise we have this error

$ ember build --environment=production
To use these addons, your app needs ember-auto-import >= 2: ember-cli-addon-docs

It is breaking because, if i'm not wrong, it will make apps using ember-exam to have ember-auto-import 2+ , otherwise they will also have the error displayed above

Refactor

Fix issue with test:mocha scripts

For an unknown reason it now fails to generate blueprints for ember-mocha via bin/install-test-framework.sh

Capture d’écran 2021-09-17 à 16 49 35

Modified the command to ensure it generate ember-mocha blueprints in case of ember install ember-mocha fails to do it


Note for reviewers

This PR fix issues with ember-beta and ember-canary scenarios which are failing in this repo.

These scenarios were failing because of an issue with liquid-fire dependencies not compatible with Ember 4.0 (liquid-fire have some components using named outlets, see this job for example), liquid-fire is no more used in [email protected].


Todo

@ndekeister-us ndekeister-us force-pushed the build/upgrade_ember-cli-addon-docs branch 2 times, most recently from 974c65c to fe23c1a Compare September 9, 2021 16:01
@ndekeister-us ndekeister-us force-pushed the build/upgrade_ember-cli-addon-docs branch from fe23c1a to 2d55500 Compare September 17, 2021 11:50
@ndekeister-us ndekeister-us changed the title build: upgrade ember-cli-addon-docs + dependencies breaking: upgrade ember-cli-addon-docs + ember-auto-import + dependencies Sep 17, 2021
@ndekeister-us ndekeister-us force-pushed the build/upgrade_ember-cli-addon-docs branch from 2d55500 to 841e7f2 Compare September 17, 2021 13:18
@ndekeister-us ndekeister-us force-pushed the build/upgrade_ember-cli-addon-docs branch from 841e7f2 to 70d8734 Compare September 17, 2021 13:34
@ndekeister-us ndekeister-us marked this pull request as ready for review September 17, 2021 14:59
@@ -1,5 +1,5 @@
#!/bin/bash
set -ev
if [ "${TEST_FRAMEWORK}" = "ember-mocha" ]; then
yarn remove ember-qunit 2>/dev/null && echo "n" | ember install ember-mocha || true
yarn remove ember-qunit 2>/dev/null && echo "n" | ember install ember-mocha || echo "n" | ember g ember-mocha || true
Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure about the why it fails to generate ember-mocha blueprints via ember install ember-mocha now.

This "fix" work and force to generate them in case of fails, but feel free to share if you have an idea about the why / a better fix

@ndekeister-us
Copy link
Author

Closing as not needed anymore!

@ndekeister-us ndekeister-us deleted the build/upgrade_ember-cli-addon-docs branch December 24, 2021 14:25
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.

1 participant