diff --git a/gulpfile.js b/gulpfile.js index 25e4c0d5a7..b6ed0b899b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -82,3 +82,9 @@ gulp.task('codestyle', function () { .pipe(jscs.reporter()) .pipe(jscs.reporter('fail')); }); + +gulp.task('fixstyle', function () { + return gulp.src(paths.scripts, { base: '.' }) + .pipe(jscs({ fix: true })) + .pipe(gulp.dest('.')); +});