import * as del from 'del' ; import { task } from 'gulp' ; task ( 'clean' , ( done ) => { del ( [ 'dist/**' ] ) . then ( ( ) => { done ( ) ; } ) . catch ( err => { done ( err ) ; } ) ; } ) ; task ( 'clean.src' , ( done ) => { del ( [ 'src/**/*.js' , 'src/**/*.d.ts' ] ) . then ( ( ) => { done ( ) ; } ) . catch ( err => { done ( err ) ; } ) ; } ) ;