0.3.0 • Published 10 years ago

gulp-bem-debug v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

gulp-bem-debug NPM version Build Status Dependency Status

Prints info about passing by BEM objects in next format: [level] bem or title [level] bem

Wow

Usage

var gulp = require('gulp');
var bem = require('gulp-bem');
var debug = require('gulp-bem-debug');
var concat = require('gulp-concat');

var levels = [ 'desktop.blocks', 'desktop.bundles/index' ];

gulp.task('build', ['clean'], function () {
    var tree = bem.objects(levels).pipe(bem.tree());
    var deps = tree.deps('desktop.bundles/index/sepulka');

    deps.pipe(debug());

    return deps.src('{bem}.css')
        .pipe(concat('index.css'))
        .pipe(gulp.dest('./dist'));
});

API

debug(options)

Creates pass through stream, that will print debug information about BEM objects.

options
title

Type: String

Title, that will prefix all messages in current Stream.

License

MIT (c) 2014 Vsevolod Strukchinsky

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago