ember-cli / broccoli-builder

MIT License
1 stars 10 forks source link

Use `tree.annotation` if present. #8

Closed rwjblue closed 7 years ago

rwjblue commented 7 years ago

Newer versions of broccoli use annotation instead of description (see broccoli-plugin documentation).

Without including annotation in our getDescription code, we do not have the ability to see the proper descriptions for nodes based on broccoli-plugin that do not also add a .description (which some do manually).

rwjblue commented 7 years ago

I've prepared a before/after example which is somewhat annoying to review in full detail:

before

after

rwjblue commented 7 years ago

Updated to add some unit tests around getDescription.