enb / enb-bem-techs

ENB package to build BEM-projects
Other
22 stars 22 forks source link

deps-by-tech: incorrect result for boolean mods #192

Closed blond closed 8 years ago

blond commented 8 years ago

The deps-by-tech-to-bemdecl tech does not add true value in result.

({
    tech: 'js',
    shouldDeps: {
        block: 'block',
        mod: 'mod-name',
        tech: 'bemhtml',
    }
})

Actual:

exports.blocks = [{
    name: 'button',
    mods: [{
        name: 'mod-name'
    }]
}];

Expected:

exports.blocks = [
    name: 'button',
    mods: [{
        name: 'mod-name',
        vals: [{ name: true }] 
    }]
}];