Skip to content

Cryrivers/ember-engines-dedupe-vendor

Repository files navigation

Build Status

ember-engines-dedupe-vendor

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.

Demo

You can run the dummy app in the project for demo.

  • git clone this repository
  • npm install
  • bower install
  • ember server
  • Visit your app at http://localhost:4200.

Dependencies of the dummy app

Main app

  • liquid-fire
  • ember-concurrency
  • ember-composable-helpers
    • inc helper

The lazy-loading engine

  • liquid-fire
  • ember-concurrency
  • ember-composable-helpers
    • inc helper
    • dec helper

As you can see, everything is duplicated except for dec helper module.

Before using ember-engines-dedupe-vendor

Before

After using ember-engines-dedupe-vendor

After

Installation

$ ember install ember-engines-dedupe-vendor

and done. You don't have to setup anything. It just works.

Compatibility

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.

Testing

$ ember test
$ ember test --server

About

De-duplicate vendor files in your ember engines

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published