De-duplicate vendor files in your ember engines.
If your ember app has multiple lazy-loading engines, and they all installed some awesome addons. The addon vendor files would be duplicated and present in both vendor.js
and engine-vendor.js
files. This addon aims to remove all duplicated vendor modules which have already been in vendor.js
from engine-vendor.js
.
You can run the dummy app in the project for demo.
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
- liquid-fire
- ember-concurrency
- ember-composable-helpers
inc
helper
- liquid-fire
- ember-concurrency
- ember-composable-helpers
inc
helperdec
helper
As you can see, everything is duplicated except for dec
helper module.
$ ember install ember-engines-dedupe-vendor
and done. You don't have to setup anything. It just works.
This addon is tested against the release
, beta
and canary
channels with ember-engines 0.5.0-beta.5
. It is not tested against lts-2.4
and lts-2.8
channels as those versions do not support lazy-loading engines.
$ ember test
$ ember test --server