import * as gulp from 'gulp' ; import { runSequence , task } from './tools/utils' ; gulp . task ( 'clean' , task ( 'clean' , 'all' ) ) ; gulp . task ( 'clean.dist' , task ( 'clean' , 'dist' ) ) ; gulp . task ( 'clean.test' , task ( 'clean' , 'test' ) ) ; gulp . task ( 'clean.tmp' , task ( 'clean' , 'tmp' ) ) ; gulp . task ( 'check.versions' , task ( 'check.versions' ) ) ; gulp . task ( 'build.docs' , task ( 'build.docs' ) ) ; gulp . task ( 'serve.docs' , task ( 'serve.docs' ) ) ; gulp . task ( 'postinstall' , done => runSequence ( 'clean' , 'npm' , done ) ) ; gulp . task ( 'build.dev' , done => runSequence ( 'clean.dist' , 'tslint' , 'build.assets.dev' , 'build.js.dev' , 'build.index.dev' , done ) ) ; gulp . task ( 'build.prod' , done => runSequence ( 'clean.dist' , 'clean.tmp' , 'tslint' , 'build.assets.prod' , 'build.html_css.prod' , 'build.js.prod' , 'build.bundles' , 'build.index.prod' , done ) ) ; gulp . task ( 'build.dev.watch' , done => runSequence ( 'build.dev' , 'watch.dev' , done ) ) ; gulp . task ( 'build.test.watch' , done => runSequence ( 'build.test' , 'watch.test' , done ) ) ; gulp . task ( 'test' , done => runSequence ( 'clean.test' , 'tslint' , 'build.test' , 'karma.start' , done ) ) ; gulp . task ( 'serve' , done => runSequence ( 'build.dev' , 'server.start' , 'watch.serve' , done ) ) ; gulp . task ( 'docs' , done => runSequence ( 'build.docs' , 'serve.docs' , done ) ) ;