What is the developer flow for ember-engines?

534 Views Asked by At

I am just beginning to look into Ember.js engines. One thing that stands out is that for every change I make in the engine code I need to re-install it into the host application. There is no live reload, rebuild or any of this.

Is there a way to smooth out this flow as it would slow down development considerably.

1

There are 1 best solutions below

0
AudioBubble On BEST ANSWER

The trick is to set isDevelopingAddon like so in the index.js file for the addon and use NPM link to get it into the main application node_packages folder - you will then get live reload, etc-:

// Addon index.js
isDevelopingAddon: function() {
  return true;
}

To add to this I found an interesting article here: Ember and Yarn Workspaces