Giter VIP home page Giter VIP logo

gulp-axe-core's Introduction

gulp-axe-core

Package Quality

Gulp plugin to use axe-core

Inspired by grunt-axe-webdriver.

Deprecation warning

This plugin has been deprecated in favor of gulp-axe-webdriver

Install

$ npm install --save-dev gulp-axe-core

The task

Usage

With Chrome (default)

var gulp = require('gulp');
var axeCore = require('gulp-axe-core');

gulp.task('axe', function() {
  var options = {
			saveOutputIn: 'allHtml.json'
	};
	return gulp.src('src/file2.html')
		.pipe(axeCore(options));
});

With PhantomJS

var gulp = require('gulp');
var axeCore = require('gulp-axe-core');

gulp.task('axe', function() {
  var options = {
			saveOutputIn: 'allHtml.json',
			browser: 'phantomjs'
	};
	return gulp.src('src/file2.html')
		.pipe(axeCore(options));
});

Options

Type: Object Default value:

{
  browser: 'phantomjs',
  threshold: 0,
	folderOutputReport: 'aXeReports',
	saveOutputIn: ''
}

threshold

Type: Number Default value: 0

A number that represents the maximum number of allowable violations. Each violation represents a rule that fails, it may fail for an number of nodes. It is recommended that this value not be changed. A negative value will prevent failure whatever the number of violations.

browser

Type: String Default value: chrome

Which browser to run the tests in.

saveOutputIn

Type: String Default value: ''

An optional file to which the results of the accessibility scans will be written as a JSON Array of results objects.

folderOutputReport

Type: String Default value: 'aXeReports'

An optional folder to indicate where the output will be saved.

Release History

Read the full changelog.

License

MIT © Felix Zapata

gulp-axe-core's People

Contributors

felixzapata avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.