2020-11-05 18:58:23 +02:00
|
|
|
const gulp = require('gulp');
|
2020-11-07 17:59:37 +02:00
|
|
|
const utils = require('@joplin/tools/gulp/utils');
|
2020-11-05 18:58:23 +02:00
|
|
|
|
|
|
|
const tasks = {
|
|
|
|
compileScripts: {
|
|
|
|
fn: require('./tools/compileScripts'),
|
|
|
|
},
|
|
|
|
compilePackageInfo: {
|
|
|
|
fn: require('./tools/compile-package-info.js'),
|
|
|
|
},
|
|
|
|
copyPluginAssets: {
|
|
|
|
fn: require('./tools/copyPluginAssets.js'),
|
|
|
|
},
|
|
|
|
copyTinyMceLangs: {
|
|
|
|
fn: require('./tools/copyTinyMceLangs.js'),
|
|
|
|
},
|
|
|
|
electronRebuild: {
|
|
|
|
fn: require('./tools/electronRebuild.js'),
|
|
|
|
},
|
2020-11-07 17:59:37 +02:00
|
|
|
tsc: require('@joplin/tools/gulp/tasks/tsc'),
|
|
|
|
updateIgnoredTypeScriptBuild: require('@joplin/tools/gulp/tasks/updateIgnoredTypeScriptBuild'),
|
2020-11-05 18:58:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
utils.registerGulpTasks(gulp, tasks);
|
|
|
|
|
|
|
|
const buildParallel = [
|
|
|
|
'compileScripts',
|
|
|
|
'compilePackageInfo',
|
|
|
|
'copyPluginAssets',
|
|
|
|
'copyTinyMceLangs',
|
2021-08-05 15:35:58 +02:00
|
|
|
// 'updateIgnoredTypeScriptBuild',
|
2020-11-05 18:58:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
gulp.task('build', gulp.parallel(...buildParallel));
|