2020-02-17 22:55:09 +02:00
|
|
|
const gulp = require('gulp');
|
2020-11-05 18:58:23 +02:00
|
|
|
const utils = require('./packages/tools/gulp/utils');
|
2020-02-17 22:55:09 +02:00
|
|
|
|
2020-02-21 00:59:18 +02:00
|
|
|
const tasks = {
|
2020-11-05 18:58:23 +02:00
|
|
|
// copyLib: require('./packages/tools/gulp/tasks/copyLib'),
|
|
|
|
// tsc: require('./packages/tools/gulp/tasks/tsc'),
|
|
|
|
updateIgnoredTypeScriptBuild: require('./packages/tools/gulp/tasks/updateIgnoredTypeScriptBuild'),
|
|
|
|
// deleteBuildDirs: require('./packages/tools/gulp/tasks/deleteBuildDirs'),
|
|
|
|
completePublishAll: {
|
|
|
|
fn: async () => {
|
2020-12-14 16:55:31 +02:00
|
|
|
// await utils.execCommandVerbose('git pull');
|
|
|
|
await utils.execCommandVerbose('git', ['add', '-A']);
|
|
|
|
await utils.execCommandVerbose('git', ['commit', '-m', 'Releasing sub-packages']);
|
|
|
|
await utils.execCommandVerbose('lerna', ['publish', 'from-package', '-y']);
|
|
|
|
await utils.execCommandVerbose('git', ['push']);
|
2020-11-05 18:58:23 +02:00
|
|
|
},
|
|
|
|
},
|
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-11-05 18:58:23 +02:00
|
|
|
// gulp.task('build', gulp.series('copyLib', 'tsc', 'updateIgnoredTypeScriptBuild'));
|
2020-10-10 14:02:37 +02:00
|
|
|
|
2020-11-05 18:58:23 +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'));
|