Skip to content
This repository was archived by the owner on Aug 1, 2019. It is now read-only.
This repository was archived by the owner on Aug 1, 2019. It is now read-only.

Bug in interpreting nested scheme #21

@qfox

Description

@qfox

Atm layer used as an absolute path, it's incorrect.

Layer is an abstract identifier and does not know anything about paths on fs.
In the result fs-scheme can return just relative path to level directory.
So these lines https://github.com/bem-sdk/bem-fs-scheme/blob/master/lib/schemes/nested.js#L50-L52 should looks like:

var folder = path.join(layer + '.blocks', entity.block,
    entity.elem ? (elemDelim + entity.elem) : '',
    entity.mod ? (modDelim + entity.mod.name) : '');

Because layer should contains just 'common' or 'desktop' strings.

p.s. Guess there is the same issue in flat scheme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions