This repository was archived by the owner on Jul 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 33
44_ Gulp plugin to validate HTML using the W3C Markup Validation Service_
55
6- [ ![ License: MIT ] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://github.com/center-key/gulp-w3c-html-validator/blob/master /LICENSE.txt )
6+ [ ![ License: MIT ] ( https://img.shields.io/badge/License-MIT-blue.svg )] ( https://github.com/center-key/gulp-w3c-html-validator/blob/main /LICENSE.txt )
77[ ![ npm] ( https://img.shields.io/npm/v/gulp-w3c-html-validator.svg )] ( https://www.npmjs.com/package/gulp-w3c-html-validator )
88[ ![ Vulnerabilities] ( https://snyk.io/test/github/center-key/gulp-w3c-html-validator/badge.svg )] ( https://snyk.io/test/github/center-key/gulp-w3c-html-validator )
99[ ![ Build] ( https://travis-ci.org/center-key/gulp-w3c-html-validator.svg )] ( https://travis-ci.org/center-key/gulp-w3c-html-validator )
@@ -16,7 +16,7 @@ Install module into your project:
1616$ npm install --save-dev gulp-w3c-html-validator
1717```
1818
19- ## 2) Define task
19+ ## 2) Define Task
2020Create a task in your ** gulpfile.js** :
2121``` javascript
2222// Imports
@@ -36,7 +36,7 @@ const task = {
3636gulp .task (' validate-html' , task .validateHtml );
3737```
3838
39- ## 3) Custom reporting
39+ ## 3) Custom Reporting
4040The results are also added onto each file object under ` validationResults ` , containing ` success ` (boolean)
4141and ` messages ` (Array).
4242
Original file line number Diff line number Diff line change 4646 "plugin-error" : " ~1.0" ,
4747 "through2" : " ~4.0" ,
4848 "vinyl" : " ~2.2" ,
49- "w3c-html-validator" : " ~0.6 "
49+ "w3c-html-validator" : " ~0.7 "
5050 },
5151 "devDependencies" : {
5252 "jshint" : " ~2.13" ,
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ setupTools() {
2929releaseInstructions () {
3030 cd $projectHome
3131 repository=$( grep repository package.json | awk -F' "' ' {print $4}' | sed s/github://)
32- package=https://raw.githubusercontent.com/$repository /master /package.json
32+ package=https://raw.githubusercontent.com/$repository /main /package.json
3333 version=v$( grep ' "version"' package.json | awk -F' "' ' {print $4}' )
3434 pushed=v$( curl --silent $package | grep ' "version":' | awk -F' "' ' {print $4}' )
3535 released=$( git tag | tail -1)
You can’t perform that action at this time.
0 commit comments