import * as gulp from 'gulp' ; import * as util from 'gulp-util' ; import * as runSequence from 'run-sequence' ; import Config from './tools/config' ; import { loadTasks , loadCompositeTasks } from './tools/utils' ; loadTasks ( Config . SEED_TASKS_DIR ) ; loadTasks ( Config . PROJECT_TASKS_DIR ) ; loadCompositeTasks ( Config . SEED_COMPOSITE_TASKS , Config . PROJECT_COMPOSITE_TASKS ) ; let firstRun = true ; gulp . task ( 'clean.once' , ( done ) => { if ( firstRun ) { firstRun = false ; runSequence ( 'check.tools' , 'clean.dev' , 'clean.coverage' , done ) ; } else { util . log ( 'Skipping clean on rebuild' ) ; done ( ) ; } } ) ;