Skip to content

Commit 4c42644

Browse files
committed
gulp: compile test and bench only if it's required
1 parent 414fa68 commit 4c42644

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

gulpfile.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ gulp.task('compile', [
2222
'compile-bin',
2323
'compile-lib',
2424
'compile-server',
25-
'compile-client',
26-
'compile-test',
27-
'compile-bench'
25+
'compile-client'
2826
])
2927

3028
gulp.task('compile-bin', () => {
@@ -158,12 +156,12 @@ gulp.task('build-client', ['compile-lib', 'compile-client'], () => {
158156
.pipe(notify('Built release client'))
159157
})
160158

161-
gulp.task('test', ['compile', 'copy-test-fixtures'], () => {
159+
gulp.task('test', ['compile', 'compile-test', 'copy-test-fixtures'], () => {
162160
return gulp.src('dist/test/*.js')
163161
.pipe(ava())
164162
})
165163

166-
gulp.task('bench', ['compile', 'copy-bench-fixtures'], () => {
164+
gulp.task('bench', ['compile', 'compile-bench', 'copy-bench-fixtures'], () => {
167165
return gulp.src('dist/bench/*.js', {read: false})
168166
.pipe(benchmark({
169167
reporters: benchmark.reporters.etalon('RegExp#test')

0 commit comments

Comments
 (0)