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

Don't use ember-cli project instance outside of ember-cli commands #1036

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bertdeblock
Copy link
Member

@bertdeblock bertdeblock commented Dec 18, 2024

Part of decoupling ember-try from ember-cli.

This way, only the code in lib/commands is coupled to ember-cli.
The next step would be to move the run portion of the commands to separate files.
This would allow us to move everything to ES modules, except the commands.
The commands can async import and run the ES modules.

@bertdeblock bertdeblock self-assigned this Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.54%. Comparing base (8618294) to head (951a41e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1036      +/-   ##
==========================================
+ Coverage   95.49%   95.54%   +0.04%     
==========================================
  Files          21       21              
  Lines         511      516       +5     
==========================================
+ Hits          488      493       +5     
  Misses         23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bertdeblock
Copy link
Member Author

Still need to update getting the config without a project instance.

kategengler
kategengler previously approved these changes Dec 18, 2024
@bertdeblock bertdeblock force-pushed the dont-use-ember-cli-project-instance-outside-of-ember-cli-commands branch from f747ca7 to 951a41e Compare January 20, 2025 16:04
if (versionCompatibility) {
// Required lazily to improve startup speed.
let autoScenarioConfigForEmber = require('ember-try-config');

let autoConfig = await autoScenarioConfigForEmber({
versionCompatibility,
project: options.project,
Copy link
Member Author

Choose a reason for hiding this comment

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

Does not seem to be used by ember-try-config?

@bertdeblock bertdeblock marked this pull request as ready for review January 20, 2025 16:20
@bertdeblock bertdeblock dismissed kategengler’s stale review January 20, 2025 16:21

I added new changes.

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