ember-cli should look up for addons in optionalDependencies as well.#105
ember-cli should look up for addons in optionalDependencies as well.#105Turbo87 merged 10 commits intoember-cli:masterfrom
Conversation
|
cc @kellyselden , kindly guide me through the RFC process. |
rwjblue
left a comment
There was a problem hiding this comment.
In general, I agree that we should handle optionalDependencies better than we do. I think the general proposal (that we discover from optionalDependencies when we can resolve them and do not error if we don't) is perfect.
I'm not really in favor of adding any API to ember-cli-build.js for this though..
|
We discussed this in our meeting today. We are 100% on board with discovering addons in optionalDependencies. We will try to require.resolve them relative to the package.json they are in, and if they exist, use them, otherwise continue without failing. The new API in ember-cli-build.js seemed a little unnecessary to us, and would like to continue the RFC without it. Does all this sound good to you @SharavanaPrasad? Would you mind updating the RFC with the above info? Also, we don't anticipate the implementation to be that difficult or require that much code, would you be interested in implementing as well? |
|
@kellyselden Thank you! That sounds exciting!! I am all ready to open a PR for the same. As per the discussion we can work to make ember-cli scan for Optional Dependencies as well and proceed the build even if any of optional dependencies is missing. @rwjblue , The mail reason I had asked for an API in That's Great 👍 |
|
I have updated the RFC as per our conclusion. Please check if it's good. Will be pushing a PR for this functionality in a couple of days. |
stefanpenner
left a comment
There was a problem hiding this comment.
I'm moving this into FCP. That being said, I don't expect any additional changes/concerns.
Given that, submitting a PR is likely a good idea. The remaining bikeshedding will just be code related.
|
@SharavanaPrasad sorry that it took us so long, we forgot... 🙈 |
ember-cli should look up for addons in optionalDependencies as well.
RFC for the proposal that ember-cli could look up for addons in optionalDependencies as well to include it in consuming application.
rendered