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');
|
2022-07-22 19:51:12 +02:00
|
|
|
import { buildInjectedJS, watchInjectedJS } from './tools/buildInjectedJs';
|
2020-11-05 18:58:23 +02:00
|
|
|
|
|
|
|
const tasks = {
|
|
|
|
encodeAssets: {
|
|
|
|
fn: require('./tools/encodeAssets'),
|
|
|
|
},
|
2021-07-13 20:13:13 +02:00
|
|
|
buildInjectedJs: {
|
2022-07-22 19:51:12 +02:00
|
|
|
fn: buildInjectedJS,
|
|
|
|
},
|
|
|
|
watchInjectedJs: {
|
|
|
|
fn: watchInjectedJS,
|
2020-11-05 18:58:23 +02:00
|
|
|
},
|
|
|
|
podInstall: {
|
|
|
|
fn: require('./tools/podInstall'),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
utils.registerGulpTasks(gulp, tasks);
|
|
|
|
|
|
|
|
gulp.task('build', gulp.series(
|
2021-07-13 20:13:13 +02:00
|
|
|
'buildInjectedJs',
|
2020-11-05 18:58:23 +02:00
|
|
|
'encodeAssets',
|
2023-08-22 12:58:53 +02:00
|
|
|
'podInstall',
|
2020-11-05 18:58:23 +02:00
|
|
|
));
|