Skip to content

Mixins in mixin #200

@patgod85

Description

@patgod85

My app uses module (master) that depends on 2 other modules (slave1, slave2). What approach should I select?

app/
--- .lmd/
--------- app.lmd.json
--- app.js
modules/
--- master/
------ .lmd/
------------ master.lmd.json
------ master.js
--- slave1/
------ .lmd/
------------ slave1.lmd.json
------ slave1.js
--- slave2/
------ .lmd/
------------ slave2.lmd.json
------ slave2.js
  • Looks like master module should be the Bundle, but I want to have it as a part of application but not loaded separately.
  • Depends looks like a solution but I can't specify an array of slave1 and slave2
  • Mixins work fine to include master.lmd.json into app.lmd.json, but mixins of master do not load
// app.lmd.json
{
    ...
    "mixins": [
        "../../master/.lmd/master.lmd.json"
    ]
}
// master.lmd.json
{
    ...
    "mixins": [
        "../../slave1/.lmd/slave1.lmd.json"
        "../../slave2/.lmd/slave2.lmd.json"
    ]
}

Now I use

// app.lmd.json
{
    ...
    "mixins": [
        "../../master/.lmd/master.lmd.json"
        "../../slave1/.lmd/slave1.lmd.json"
        "../../slave2/.lmd/slave2.lmd.json"
    ]
}

But I prefer to encapsulate configuration of master module in master.lmd.json

What I do wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions