You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// gulpfile.babel.jsimportalexfrom'gulp-alex'importgulpfrom'gulp'/* ./README.md */// # Awesome project!// Garbagemen versus Abe Lincoln!gulp.task('alex',()=>gulp.src('./README.md').pipe(alex()).pipe(alex.reporter())// prints any issues Alex finds to the console.pipe(alex.reporter('fail'))// emits an error after the task is ran if there are errors in any files.pipe(alex.reporter('failImmediately'))// causes the task to fail right away if Alex finds any issues with a file)// `gulp alex` produces in console:// README.md// 2:1 `garbageman` may be insensitive, use `garbage collector`, `waste collector`, `trash collector` instead
ES5
// gulpfile.jsvaralex=require('gulp-alex'),gulp=require('gulp')/* ./README.md */// # Awesome project!// Garbagemen versus Abe Lincoln!gulp.task('alex',function(){returngulp.src('./README.md').pipe(alex()).pipe(alex.reporter())// prints any issues Alex finds to the console.pipe(alex.reporter('fail'))// emits an error after the task is ran if there are errors in any files.pipe(alex.reporter('failImmediately'));// causes the task to fail right away if Alex finds any issues with a file})// `gulp alex` produces in console:// README.md// 2:1 `garbageman` may be insensitive, use `garbage collector`, `waste collector`, `trash collector` instead