Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Release v5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Sep 30, 2021
1 parent d76c422 commit 7d0de10
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 27 deletions.
24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]
```
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);
```
<br>

---
[MIT License](LICENSE.txt)
2 changes: 1 addition & 1 deletion dist/html-validator.d.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion dist/html-validator.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion dist/html-validator.umd.cjs
Original file line number Diff line number Diff line change
@@ -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 };
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 7d0de10

Please sign in to comment.