bem-sdk-archive / bem-cell

DEPRECATED →
https://github.com/bem/bem-sdk/tree/master/packages/cell#bemcell
Other
3 stars 0 forks source link

Base Implementation #1

Closed blond closed 7 years ago

blond commented 7 years ago

Meta task: https://github.com/bem-sdk/bem-sdk/issues/15

const BemCell = require('@bem/cell');

const cell = new BemCell({
    entity: { block: 'button', elem: 'text' },
    tech: 'css',
    layer: 'common'
});

cell.entity // ➜ BemEntityName { block: 'button', elem: 'text' }
cell.tech // css
cell.layer // common

Requirements:

Need to add tests (use AVA).

blond commented 7 years ago

Fixed in # https://github.com/bem-sdk/bem-cell/pull/6