在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):yargalot/gulp-accessibility开源软件地址(OpenSource Url):https://github.com/yargalot/gulp-accessibility开源编程语言(OpenSource Language):JavaScript 86.2%开源软件介绍(OpenSource Introduction):Gulp AccessibilityUses AccessSniff and HTML Codesniffer to grade your sites accessibility using different levels of the WCAG guidelines Getting StartedInstall this gulp plugin next to your project's gulpfile with: Then add this line to your project's var access = require('gulp-accessibility'); DocumentationPlace this in your gulp file. gulp.task('test', function() {
return gulp.src('./example/**/*.html')
.pipe(access({
force: true
}))
.on('error', console.log)
.pipe(access.report({reportType: 'txt'}))
.pipe(rename({
extname: '.txt'
}))
.pipe(gulp.dest('reports/txt'));
}); Report GenerationYou can link to the files you wish to lint using the gulp api You'll need to add the below to convert into other formats
OptionsView AccessSniff options for all available options. LicenseCopyright (c) 2015 Steven Miller Licensed under the MIT license. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论