1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
joplin/gulpfile.js

28 lines
1.2 KiB
JavaScript
Raw Normal View History

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
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'),
buildCommandIndex: require('./packages/tools/gulp/tasks/buildCommandIndex'),
2020-11-05 18:58:23 +02:00
// deleteBuildDirs: require('./packages/tools/gulp/tasks/deleteBuildDirs'),
completePublishAll: {
fn: async () => {
// 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
};
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'));