adopted-ember-addons / ember-paper

The Ember approach to Material Design.
https://ember-paper.netlify.app/
MIT License
888 stars 333 forks source link

update whitelist/blacklist to support pods #1118

Closed betocantu93 closed 4 years ago

betocantu93 commented 4 years ago

Adds support for blacklist/whitelist with pod components.

Use only whitelist or blacklist, NOT both.

As a reminder, whitelist is an array of components which will be included in the build, as well as all of their dependencies...

i.e

['ember-paper']: {
  whitelist: ['paper-autcomplete']
}

Would only include into the build:

[
      'paper-autocomplete',
      'paper-autocomplete/ebd-trigger',
      'paper-autocomplete/eps-trigger',
      'paper-autocomplete/ebd-content',
      'paper-autocomplete/options',
      'paper-autocomplete/no-matches-message',
      'paper-autocomplete/highlight'
]

If nested, the "path" must be specified

['ember-paper']: { 
      whitelist: [
        'paper-autocomplete/ebd-trigger'
      ]
}

Blacklist is harder to get right, use with caution, as it would only exclude this particular component.

['ember-paper']: { 
      blacklist: [
        'paper-autocomplete/ebd-trigger'
      ]
}
miguelcobain commented 4 years ago

Thanks a lot @betocantu93 !