Commit 8f649d92 authored by Dan Allen's avatar Dan Allen

add lint task to gulp build

parent a108d3be
......@@ -3,6 +3,8 @@
const gulp = require('gulp')
const build = require('./tasks/build-task')
const lint = require('./tasks/lint-task')
gulp.task('build', build)
gulp.task('lint', () => lint(['lib*/**/*.js', 'test/**/*.js']))
gulp.task('default', ['build'])
......@@ -14,7 +14,7 @@
"scripts": {
"test": "nyc --reporter=html --reporter=text mocha",
"test-watch": "nodemon --exec 'nyc --reporter=lcov --reporter=text mocha || true'",
"lint": "standard --verbose | snazzy",
"lint": "standard | snazzy",
"format": "prettier-standard **/*.js"
},
"dependencies": {
......@@ -24,6 +24,7 @@
"chai-spies": "^0.7.1",
"dirty-chai": "^2.0.1",
"gulp": "^3.9.1",
"gulp-standard": "^8.0.2",
"map-stream": "^0.0.7",
"mocha": "^3.5.3",
"nodemon": "^1.12.1",
......
'use strict'
const vfs = require('vinyl-fs')
const standard = require('gulp-standard')
module.exports = (glob) =>
vfs.src(glob)
.pipe(standard())
.pipe(standard.reporter('default', {
breakOnError: true
}))
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment