mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
23 lines
563 B
JavaScript
23 lines
563 B
JavaScript
const gulp = require('gulp');
|
|
const utils = require('@joplin/tools/gulp/utils');
|
|
const compilePackageInfo = require('@joplin/tools/compilePackageInfo');
|
|
const fs = require('fs-extra');
|
|
|
|
const tasks = {
|
|
compilePackageInfo: {
|
|
fn: async () => {
|
|
const targetDir = `${__dirname}/dist`;
|
|
await fs.mkdirp(targetDir);
|
|
await compilePackageInfo(`${__dirname}/package.json`, `${targetDir}/packageInfo.js`);
|
|
},
|
|
},
|
|
};
|
|
|
|
utils.registerGulpTasks(gulp, tasks);
|
|
|
|
const buildParallel = [
|
|
'compilePackageInfo',
|
|
];
|
|
|
|
gulp.task('build', gulp.parallel(...buildParallel));
|