From 755524abc7d8eb9601cf562cd007c03b5a406eeb Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Mon, 9 Jan 2017 10:16:31 -0600 Subject: [PATCH] chore(build): run a 'clean' before running 'validate' run a 'clean' before running 'validate' --- scripts/gulp/tasks/default.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/gulp/tasks/default.ts b/scripts/gulp/tasks/default.ts index ba9c5d7704..affaaef6f5 100644 --- a/scripts/gulp/tasks/default.ts +++ b/scripts/gulp/tasks/default.ts @@ -1,4 +1,5 @@ import * as gulp from 'gulp'; +import * as runSequence from 'run-sequence'; gulp.task('default', help); @@ -13,4 +14,6 @@ function help() { console.log(taskList.join('\n')); } -gulp.task('validate', ['lint', 'test']); +gulp.task('validate', (done: (err: any) => void) => { + runSequence('clean', ['lint', 'test'], done); +});