-
Notifications
You must be signed in to change notification settings - Fork 19
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
[WIP] Allowing link to be the absolute last step in the process #186
base: master
Are you sure you want to change the base?
Conversation
@@ -32,6 +32,11 @@ AddonTestApp.prototype.create = function(appName, options) { | |||
.then(() => this); | |||
}; | |||
|
|||
AddonTestApp.prototype.link = function(appName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to call it linkAddon
or something like that, to disambiguate it a bit more
chdir(previousCwd); | ||
return underTestAppPath; | ||
}); | ||
} | ||
|
||
function link(appName) { | ||
return Promise.resolve() | ||
.then(() => linkDependencies(appName)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this rather call symlinkAddon()
here?
@mansona I am not sure, are the changes in Tests are broken at least... |
@simonihmig you're right in saying that this is mostly for To be honest I'm surprised that you haven't come back to say my approach was a million miles off 🤔 I guess if I could get this working "downstream" with these changes I might be able to clean this up and expose |
This is a work in progress PR that is supposed to spark a discussion around #176. it is also related to kaliber5/ember-fastboot-addon-tests#21
The idea is that we need to have the linking be the last step in the process after all times that
npm install
is called. Asember-fastboot-addon-tests
does some npm magic of its own it would need to run the linking functionality again at a time that is suitable for that addon. I have a demo of what I was trying to achieve kaliber5/ember-fastboot-addon-tests#22