mrjmd / pdb

Decoupled Blocks is a Drupal 8 module to simplify integrating javascript frameworks into your site.
https://www.drupal.org/sandbox/mrjmd/2664138
57 stars 14 forks source link

Added support for add dependencies to component library build #117

Closed emacoti closed 5 years ago

emacoti commented 5 years ago

This allows to define dependency with other libraries on the component info file. Use the following pattern on the info file of the component:

Add a library dependency that will be a dependency for the component header library.

add_dependencies:
  header:
    - core/drupal.ajax

Add a library dependency that will be a dependency for the component footer library.

add_dependencies:
  footer:
    - core/drupal.ajax
emacoti commented 5 years ago

Closing in favor of #118 that provides more flexibility and an unified way to define libraries.