diff --git a/README.md b/README.md index 1c003b5..5a36959 100644 --- a/README.md +++ b/README.md @@ -95,29 +95,7 @@ const task = { gulp.task('validate-html', task.validateHtml); ``` -## 5) Deprecated CommonJS (gulp-w3c-html-validator v2.0) -If your build system is using `require()` statements for CommonJS modules, install the older v2.0: -```shell -$ npm install --save-dev gulp-w3c-html-validator@2.0 -``` -Create a task in your **gulpfile.js**: -```javascript -// Imports -import gulp from 'gulp'; -import { htmlValidator } from 'gulp-w3c-html-validator'; - -// Tasks -const task = { - validateHtml() { - return gulp.src('target/**/*.html') - .pipe(htmlValidator()) //note: v2.0 does not use analyzer() - .pipe(htmlValidator.reporter()); - }, - }; - -// Gulp -gulp.task('validate-html', task.validateHtml); -``` +
--- [MIT License](LICENSE.txt) diff --git a/dist/html-validator.d.ts b/dist/html-validator.d.ts index f264ce9..9340101 100644 --- a/dist/html-validator.d.ts +++ b/dist/html-validator.d.ts @@ -1,4 +1,4 @@ -//! gulp-w3c-html-validator v5.0.1 ~ https://github.com/center-key/gulp-w3c-html-validator ~ MIT License +//! gulp-w3c-html-validator v5.1.0 ~ https://github.com/center-key/gulp-w3c-html-validator ~ MIT License export declare type AnalyzerOptions = ValidatorOptions; export declare type ReporterOptions = { diff --git a/dist/html-validator.js b/dist/html-validator.js index 6352df1..3c2e97d 100644 --- a/dist/html-validator.js +++ b/dist/html-validator.js @@ -1,4 +1,4 @@ -//! gulp-w3c-html-validator v5.0.1 ~ https://github.com/center-key/gulp-w3c-html-validator ~ MIT License +//! gulp-w3c-html-validator v5.1.0 ~ https://github.com/center-key/gulp-w3c-html-validator ~ MIT License import { w3cHtmlValidator } from 'w3c-html-validator'; import PluginError from 'plugin-error'; diff --git a/dist/html-validator.umd.cjs b/dist/html-validator.umd.cjs index 88bf52c..4a6d250 100644 --- a/dist/html-validator.umd.cjs +++ b/dist/html-validator.umd.cjs @@ -1,4 +1,4 @@ -//! gulp-w3c-html-validator v5.0.1 ~ https://github.com/center-key/gulp-w3c-html-validator ~ MIT License +//! gulp-w3c-html-validator v5.1.0 ~ https://github.com/center-key/gulp-w3c-html-validator ~ MIT License var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; diff --git a/package.json b/package.json index 2f961fc..6435183 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gulp-w3c-html-validator", - "version": "5.0.1", + "version": "5.1.0", "description": "Gulp plugin to validate HTML using the W3C Markup Validation Service", "license": "MIT", "type": "module",