Skip to content
This repository has been archived by the owner on Mar 25, 2018. It is now read-only.

bemdecl из gulpfile #12

Open
belozer opened this issue Nov 19, 2016 · 1 comment
Open

bemdecl из gulpfile #12

belozer opened this issue Nov 19, 2016 · 1 comment

Comments

@belozer
Copy link

belozer commented Nov 19, 2016

Как можно задать сборщику bem-decl из gulpfile? Как это сделано здесь https://github.com/gulp-bem/gulp-bem-src

Нужно, чтобы проект держать более чистым (без лишних файлов на fs).

@skad0 skad0 added bug and removed bug labels Nov 19, 2016
@qfox
Copy link
Member

qfox commented Nov 19, 2016

const intoStream = require('into-stream');
const BemBundle = require('@bem/bundle');

intoStream(new BemBundle({
  name: '',
  path: '',
  decl: [
    {entity: {block: 'b1'}},
    {entity: {block: 'b2'}},
  ]
})).pipe(...)

https://github.com/bem-sdk/bem-bundle/blob/master/lib/index.js#L11

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants