1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/app-mobile/gulpfile.ts
Henry Heino 55cafb8891
Android: Add support for Markdown editor plugins (#10086)
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
2024-03-11 15:02:15 +00:00

41 lines
789 B
TypeScript

const gulp = require('gulp');
const utils = require('@joplin/tools/gulp/utils');
import injectedJsGulpTasks from './tools/buildInjectedJs/gulpTasks';
const tasks = {
encodeAssets: {
fn: require('./tools/encodeAssets'),
},
...injectedJsGulpTasks,
podInstall: {
fn: require('./tools/podInstall'),
},
};
utils.registerGulpTasks(gulp, tasks);
gulp.task('buildInjectedJs', gulp.series(
'beforeBundle',
'buildCodeMirrorEditor',
'buildJsDrawEditor',
'buildPluginBackgroundScript',
'copyWebviewLib',
));
gulp.task('watchInjectedJs', gulp.series(
'beforeBundle',
'copyWebviewLib',
gulp.parallel(
'watchCodeMirrorEditor',
'watchJsDrawEditor',
'watchPluginBackgroundScript',
),
));
gulp.task('build', gulp.series(
'buildInjectedJs',
'encodeAssets',
'podInstall',
));