Hello, i try to use gulp-bem, but i have a problem. I create the BEMJSON file index.bemjson.js and put it in "blocks/page". Into BEMJSON i wrote: { block: 'menu' }. In path "blocks\menu" i put menu.css file. Then i created gulpfile.js and wrote next code:
var gulp = require('gulp'),
bem = require('gulp-bem'),
concat = require('gulp-concat'),
livereload = require('gulp-livereload');
var levels = ['blocks'];
var tree = bem(levels);
gulp.task('default', function () {
tree.deps('blocks/page')
.pipe(bem.src('{bem}.css'))
.pipe(concat('index.css'))
.pipe(gulp.dest('./dist'));
});
And i got nothing, folder "dist" not created and no files. What i do wrong? Thanks
Hello, i try to use gulp-bem, but i have a problem. I create the BEMJSON file index.bemjson.js and put it in "blocks/page". Into BEMJSON i wrote: { block: 'menu' }. In path "blocks\menu" i put menu.css file. Then i created gulpfile.js and wrote next code:
var gulp = require('gulp'), bem = require('gulp-bem'), concat = require('gulp-concat'), livereload = require('gulp-livereload');
var levels = ['blocks']; var tree = bem(levels);
gulp.task('default', function () { tree.deps('blocks/page') .pipe(bem.src('{bem}.css')) .pipe(concat('index.css')) .pipe(gulp.dest('./dist')); });
And i got nothing, folder "dist" not created and no files. What i do wrong? Thanks