esl51 / gulp-html-bem-validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gulp-html-bem-validator

NPM version Build status

Gulp plugin for validation a bem html

Usage

First, install gulp-html-bem-validator as a development dependency:

npm install --save-dev gulp-html-bem-validator

Then, add it to your gulpfile.js:

Simple example

var gulp = require('gulp');
var gulpHtmlBemValidator = require('gulp-html-bem-validator');

gulp.task('html-bem-validator', () => {
  gulp.src('pages/*.html')
    .pipe(gulpHtmlBemValidator())
    .pipe(gulp.dest('build/'));
});

An example of outputting results to a console

Success

success-result-example

Error

error-result-example

About

License:ISC License


Languages

Language:JavaScript 100.0%