https://github.com/floatdrop/gulp-bem-debug
Debug utility for BEM objects
https://github.com/floatdrop/gulp-bem-debug
Last synced: 9 months ago
JSON representation
Debug utility for BEM objects
- Host: GitHub
- URL: https://github.com/floatdrop/gulp-bem-debug
- Owner: floatdrop
- Created: 2014-08-18T17:54:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-27T09:09:33.000Z (over 11 years ago)
- Last Synced: 2025-05-26T22:17:41.299Z (12 months ago)
- Language: JavaScript
- Size: 184 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# gulp-bem-debug [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][depstat-image]][depstat-url]
Prints info about passing by BEM objects in next format: `[level] bem` or `title [level] bem`

## Usage
```js
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', 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
[npm-url]: https://npmjs.org/package/gulp-bem-debug
[npm-image]: http://img.shields.io/npm/v/gulp-bem-debug.svg?style=flat
[travis-url]: http://travis-ci.org/floatdrop/gulp-bem-debug
[travis-image]: http://img.shields.io/travis/floatdrop/gulp-bem-debug.svg?branch=master&style=flat
[depstat-url]: https://david-dm.org/floatdrop/gulp-bem-debug
[depstat-image]: http://img.shields.io/david/floatdrop/gulp-bem-debug.svg?style=flat