-
Есть примерно следующая структура вложенных блоков:
```javascript
{
block : 'box',
mods : {
root : true,
id : 'layoutBox',
},
content : {
block : 'bo…
-
In explanation https://github.com/bem-sdk-archive/bem-walk/issues/81 and https://github.com/bem-site/bem-forum-content-ru/issues/1100
```
block/tech
block/_mod/tech
block/_mod_val/tech
block/__…
-
Shortly, like that:
``` js
class BemVynil extends Vynil {
entity: BemEntity,
tech: String,
level: String
}
```
This will be useful to build plugins like `streamFilter(file => file.entity.block…
-
```js
const BemEntityName = require('@bem/entity-name');
const buttonName = new BemEntityName({ block: 'button' });
buttonName.clone(); // BemEntityName({ block: 'button' })
const mutant = b…
blond updated
7 years ago
-
Коротко и только о самом главном.
## Библиотеки
### bem-core
Выпустили версии bem-core [4.1.0](https://ru.bem.info/platform/libs/bem-core/4.1.0/)-[4.2.1](https://github.com/bem/bem-core/tree/v4…
-
It should realize this:
``` js
const src = require('gulp-bem-src');
src({
config: BemConfig,
sources: String[],
bemdecl: *,
techs: String[],
techsAliases: ?Object
}): Stream
class BemVyni…
-
We have quite common pattern in BEMTREE when some entity is replaced with some other and mixed with source entity:
``` js
block('b1').elem('e1').replace({
block: 'b2',
mix: { block: this.bloc…
-
```js
const BemEntityName = require('@bem/entity-name');
const buttonName = new BemEntityName({ block: 'button' });
const buttonTextName = new BemEntityName({ block: 'button', elem: 'text' });
c…
blond updated
7 years ago
-
Как можно задать сборщику bem-decl из gulpfile? Как это сделано здесь https://github.com/gulp-bem/gulp-bem-src
Нужно, чтобы проект держать более чистым (без лишних файлов на fs).
-
What about independent entities without binding to BEM?
Like this:
``` js
{
block: 'foo',
content: [
{tag: 'strong', content: 'HELLO'},
',',
{tag: 'i', content: 'WORLD'},
]
}
```
…
unlok updated
9 years ago