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

feat: publish shell and adapter, fix dependency resolution #221

Merged
merged 8 commits into from
Jan 3, 2020

Conversation

amcgee
Copy link
Member

@amcgee amcgee commented Dec 17, 2019

Fixes #196

Use npm to install app-shell and app-adapter from the registry, rather than bundling them as assets. This allows us to resolve all dependencies through the top-level application's node_modules, rather than through the subsidiary shell's node_modules. This also allows shell dependencies to be overridden with the resolutions field in the app's package.json, though that's not generally recommended.

To make this even cleaner, we should show a warning if the hoisted version of an app-shell dependency doesn't match the version resolved from the shell itself, and also detect when multiple copies of dependencies (particularly singleton ones like react and styled-jsx) end up in the bundle.

@amcgee amcgee requested review from edoardo and varl December 17, 2019 20:21
@amcgee
Copy link
Member Author

amcgee commented Dec 17, 2019

Thanks @varl for the idea to try this approach and the productive brainstorming!

@varl
Copy link
Contributor

varl commented Dec 18, 2019

This looks pretty clean, @amcgee. Good work!

Copy link
Contributor

@varl varl left a comment

Choose a reason for hiding this comment

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

👍

@amcgee amcgee merged commit dd1c51a into master Jan 3, 2020
@amcgee amcgee deleted the fix/dependency-resolution branch January 3, 2020 11:07
dhis2-bot added a commit that referenced this pull request Jan 3, 2020
# [3.1.0](v3.0.2...v3.1.0) (2020-01-03)

### Features

* publish shell and adapter, fix dependency resolution ([#221](#221)) ([dd1c51a](dd1c51a))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

amcgee added a commit that referenced this pull request Jan 30, 2020
The documentation was out-of-date with the latest behavior after #221
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.

Application dependency resolution doesn't work well
3 participants