Skip to content

Commit

Permalink
gulp: init gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkoryukov committed Jan 25, 2017
1 parent fd7a2fd commit 79b6d16
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
"use strict"

const argv = require('yargs').argv;

const gulp = require("gulp")
const eslint = require('gulp-eslint')

gulp.task('default', ['lint'])

gulp.task('lint', () => {
return gulp.src(['gulpfile.js', '**/.js'])
.pipe(eslint({
"fix": !!argv.fix
}))
.pipe(gulp.dest())
.pipe(eslint.format())
.pipe(eslint.failAfterError())
})

0 comments on commit 79b6d16

Please sign in to comment.