2016-02-27 16:45:44 +00:00
|
|
|
import gulp from 'gulp';
|
|
|
|
import del from 'del';
|
|
|
|
import runSequence from 'run-sequence';
|
2017-04-29 14:52:12 +00:00
|
|
|
import PATHS from './helpers/src-paths';
|
2016-02-27 16:45:44 +00:00
|
|
|
|
2017-04-29 14:52:12 +00:00
|
|
|
gulp.task('build', (callback) => {
|
|
|
|
runSequence('clean', ['build-cli', 'build-app', 'build-tests'], callback);
|
2016-02-27 16:45:44 +00:00
|
|
|
});
|
|
|
|
|
2017-04-29 14:52:12 +00:00
|
|
|
gulp.task('clean', (callback) => {
|
|
|
|
del(PATHS.CLI_DEST).then(() => {
|
|
|
|
del(PATHS.APP_DEST).then(() => {
|
|
|
|
del(PATHS.TEST_DEST).then(() => {
|
|
|
|
callback();
|
|
|
|
});
|
2016-02-27 16:45:44 +00:00
|
|
|
});
|
2017-04-29 14:52:12 +00:00
|
|
|
});
|
2016-02-27 16:45:44 +00:00
|
|
|
});
|