floatdrop / gulp-bem

BEM toolset for gulp
26 stars 2 forks source link

Can't cerate a project. #15

Open SmirnovW opened 8 years ago

SmirnovW commented 8 years ago

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

iamstarkov commented 8 years ago

can you create to a repo to showcase and test your problem?

SmirnovW commented 8 years ago

https://github.com/SmirnovW/bem-test.git please help me, i want use BEM =)