Provide option to autodetect libraries

Created on 15 March 2023, over 1 year ago
Updated 25 January 2024, 10 months ago

Problem/Motivation

The module works great to define new namespaces. We had a similar situation with the custom implementation of the storybook. It was done in a custom module in a similar situation to the https://medium.com/@askibinski/integrating-storybook-with-drupal-ddabfc6...

However, this custom module also contained different libraries in its sub-directories. I have a limited understanding of the internals of storybook, but there are a lot of libraries defined in them. It would be good if there was a way to autoload them as they seem to be dynamic and pretty tough to be included in the module's *.libraries.yml

Proposed resolution

Provide a new option to automatically detect the libraries. In the following way:

components:
  namespaces:
    myLib:
      - myLibFiles
  autodetect_libraries:
    - myLib

Remaining tasks

Patch and review.

User interface changes

None.

API changes

New option added to the yaml file.

Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

🇮🇳India ajits India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024