Commit 4c426448 authored by nkzawa's avatar nkzawa

gulp: compile test and bench only if it's required

parent 414fa682
...@@ -22,9 +22,7 @@ gulp.task('compile', [ ...@@ -22,9 +22,7 @@ gulp.task('compile', [
'compile-bin', 'compile-bin',
'compile-lib', 'compile-lib',
'compile-server', 'compile-server',
'compile-client', 'compile-client'
'compile-test',
'compile-bench'
]) ])
gulp.task('compile-bin', () => { gulp.task('compile-bin', () => {
...@@ -158,12 +156,12 @@ gulp.task('build-client', ['compile-lib', 'compile-client'], () => { ...@@ -158,12 +156,12 @@ gulp.task('build-client', ['compile-lib', 'compile-client'], () => {
.pipe(notify('Built release client')) .pipe(notify('Built release client'))
}) })
gulp.task('test', ['compile', 'copy-test-fixtures'], () => { gulp.task('test', ['compile', 'compile-test', 'copy-test-fixtures'], () => {
return gulp.src('dist/test/*.js') return gulp.src('dist/test/*.js')
.pipe(ava()) .pipe(ava())
}) })
gulp.task('bench', ['compile', 'copy-bench-fixtures'], () => { gulp.task('bench', ['compile', 'compile-bench', 'copy-bench-fixtures'], () => {
return gulp.src('dist/bench/*.js', {read: false}) return gulp.src('dist/bench/*.js', {read: false})
.pipe(benchmark({ .pipe(benchmark({
reporters: benchmark.reporters.etalon('RegExp#test') reporters: benchmark.reporters.etalon('RegExp#test')
......
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