在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):emgeee/gulp-standard开源软件地址(OpenSource Url):https://github.com/emgeee/gulp-standard开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):
Information
UsageInstall$ npm install --save-dev gulp-standard Examples// include the required packages.
var gulp = require('gulp')
var standard = require('gulp-standard')
gulp.task('standard', function () {
return gulp.src(['./app.js'])
.pipe(standard())
.pipe(standard.reporter('default', {
breakOnError: true,
quiet: true
}))
}) ReportersBuilt-inYou can choose a reporter when you call stuff
.pipe(standard())
.pipe(standard.reporter('default', opts))
External You can also use some other custom made reporter var reporter = require(<SOME_REPORTER>)
stuff
.pipe(standard())
.pipe(standard.reporter(reporter, opts)) OR - stuff
.pipe(standard())
.pipe(standard.reporter(<REPORTER NAME>, opts)) Reporter optionsbreakOnErrorType: Emit gulp error on reported error breakOnWarningType: Emit gulp error on reported warning quietType: Suppress success messages, only show errors showRuleNamesType: Show rule names for errors/warnings (to ignore specific rules) showFilePathType: Show the full file path with the line and column numbers (useful for IDEs that will link to that location) MITLICENSE |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论