Skip to content

Write a command that will generate js list in breeze_default.xml #88

@vovayatsyuk

Description

@vovayatsyuk

Source: https://github.com/orgs/breezefront/discussions/384#discussioncomment-13690921

Usage example:

bin/magento breeze:layout:update --source=path_to_module --dest=path_to_module
bin/magento breeze:layout:update --source=vendor/swissup/module-askit
bin/magento breeze:layout:update --source=vendor/swissup/module-askit --dest=app/code/Swissup/BreezeAskit
bin/magento breeze:layout:update vendor/swissup/module-askit

It will scan the requirejs-config and js files, and add them to the breeze_default.xml. The tricky part is to add them in dependency order since Breeze is lame at runtime dependency resolving when bundling is enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions