Commit 6643d5de authored by Dan Allen's avatar Dan Allen

format build files

parent 83c694ef
Pipeline #12096425 passed with stages
in 2 minutes and 29 seconds
......@@ -5,7 +5,20 @@ const gulp = require('gulp')
const lint = require('./tasks/lint-task')
const test = require('./tasks/test-task')
gulp.task('lint', () => lint(['gulpfile.js', '{lib*,tasks,test}/**/*.js', 'packages/*/{lib,test}/**/*.js']))
gulp.task('test', ['lint'], () => test(['test/**/*-test.js', 'packages/*/test/**/*-test.js']))
gulp.task('test-only', () => test(['test/**/*-test.js', 'packages/*/test/**/*-test.js']))
gulp.task('lint', () =>
lint([
'gulpfile.js',
'{lib*,tasks,test}/**/*.js',
'packages/*/{lib,test}/**/*.js'
])
)
gulp.task('test', ['lint'], () =>
test(['test/**/*-test.js', 'packages/*/test/**/*-test.js'])
)
gulp.task('test-only', () =>
test(['test/**/*-test.js', 'packages/*/test/**/*-test.js'])
)
gulp.task('default', ['test'])
......@@ -4,8 +4,11 @@ const vfs = require('vinyl-fs')
const standard = require('gulp-standard')
module.exports = (glob) =>
vfs.src(glob)
vfs
.src(glob)
.pipe(standard())
.pipe(standard.reporter('default', {
breakOnError: true
}))
.pipe(
standard.reporter('default', {
breakOnError: true
})
)
......@@ -4,10 +4,11 @@ const vfs = require('vinyl-fs')
const mocha = require('gulp-spawn-mocha')
module.exports = (glob) =>
vfs.src(glob, { read: false })
.pipe(mocha({
vfs.src(glob, { read: false }).pipe(
mocha({
R: 'spec',
istanbul: {
report: ['lcov', 'html']
}
}))
})
)
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