2020-02-17 22:55:09 +02:00
|
|
|
const gulp = require('gulp');
|
2020-02-21 00:59:18 +02:00
|
|
|
const utils = require('./Tools/gulp/utils');
|
2020-02-17 22:55:09 +02:00
|
|
|
|
2020-02-21 00:59:18 +02:00
|
|
|
const tasks = {
|
|
|
|
copyLib: require('./Tools/gulp/tasks/copyLib'),
|
2020-03-23 02:47:25 +02:00
|
|
|
tsc: require('./Tools/gulp/tasks/tsc'),
|
2020-08-01 15:48:56 +02:00
|
|
|
updateIgnoredTypeScriptBuild: require('./Tools/gulp/tasks/updateIgnoredTypeScriptBuild'),
|
2020-10-10 14:02:37 +02:00
|
|
|
deleteBuildDirs: require('./Tools/gulp/tasks/deleteBuildDirs'),
|
2020-02-17 22:55:09 +02:00
|
|
|
};
|
|
|
|
|
2020-08-01 15:48:56 +02:00
|
|
|
utils.registerGulpTasks(gulp, tasks);
|
2020-02-17 22:55:09 +02:00
|
|
|
|
2020-02-21 00:59:18 +02:00
|
|
|
gulp.task('build', gulp.series('copyLib', 'tsc', 'updateIgnoredTypeScriptBuild'));
|
2020-10-10 14:02:37 +02:00
|
|
|
|
|
|
|
// The clean task removes build directories and copy back the library. This is useful
|
|
|
|
// when switching from one branch to another.
|
|
|
|
gulp.task('clean', gulp.series('deleteBuildDirs', 'copyLib'));
|