You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
47 lines
966 B
TypeScript
47 lines
966 B
TypeScript
const gulp = require('gulp');
|
|
const utils = require('@joplin/tools/gulp/utils');
|
|
const compilePackageInfo = require('@joplin/tools/compilePackageInfo');
|
|
|
|
import injectedJsGulpTasks from './tools/buildInjectedJs/gulpTasks';
|
|
|
|
const tasks = {
|
|
encodeAssets: {
|
|
fn: require('./tools/encodeAssets'),
|
|
},
|
|
copyWebAssets: {
|
|
fn: require('./tools/copyAssets').default,
|
|
},
|
|
compilePackageInfo: {
|
|
fn: async () => {
|
|
await compilePackageInfo(`${__dirname}/package.json`, `${__dirname}/packageInfo.js`);
|
|
},
|
|
},
|
|
|
|
...injectedJsGulpTasks,
|
|
podInstall: {
|
|
fn: require('./tools/podInstall'),
|
|
},
|
|
};
|
|
|
|
utils.registerGulpTasks(gulp, tasks);
|
|
|
|
gulp.task('buildInjectedJs', gulp.series(
|
|
'beforeBundle',
|
|
'buildBundledJs',
|
|
'copyWebviewLib',
|
|
));
|
|
|
|
gulp.task('watchInjectedJs', gulp.series(
|
|
'beforeBundle',
|
|
'copyWebviewLib',
|
|
'watchBundledJs',
|
|
));
|
|
|
|
gulp.task('build', gulp.series(
|
|
'compilePackageInfo',
|
|
'buildInjectedJs',
|
|
'copyWebAssets',
|
|
'encodeAssets',
|
|
'podInstall',
|
|
));
|