lundi 27 mars 2017

How to exclude files from Ember build?

I have a project build on Ember that uses ember-engines library.

My goal - is to exclude some files from in-repo-addons (engines).

I tried ember-cli-funnel. It allows to exclude files from the application but not from engines.

var app = new EmberApp(defaults, {
  funnel: {
    enabled: true,
    exclude: ['app-name/templates/components/develop/**']
  }
});

The example of the project structure:

    ├── app/
    │   ├── controllers/
    │   ├── routes/
    │   └── templates/
    │       └── components/
    │           └──develop/
    └── lib
        ├── engine-1
        ├── engine-2
        └── engine-3
            └── addon/
                └── services/
                    └──debug.js

I tried different ways to exclude but with no luck.

[
  'lib/engine-3/addon/services/debug.js',
  'app-name/http://..lib/engine-3/addon/services/debug.js',
  'app-name/addons/engine-3/addon/services/debug.js'
]

So the question - how can be excluded files from in-repo-addons on build step?




Aucun commentaire:

Enregistrer un commentaire