Including external directories


#1

Hi,

I would like to include an external directory (containing components) into my Ember project. For example, let’s say that my ember project resides inside /home/user/repos/test-project and my components are defined under /home/user/repos/custom-components.

Would it be possible to include the custom-components directory in my Ember app? I believe this should be possible via an addon.

Thanks for all the help!


#2

I think I’ve answered my own question :smile:

I used the treeForApp hook to return a new Broccoli funnel, like so:

treeForApp: function() {
    var tree = new Funnel('../custom-components', {
      destDir: 'components'
    });
    return tree;
  }