1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-12 08:54:00 +02:00
joplin/packages/tools/gulp/tasks/copyLib.js

18 lines
497 B
JavaScript

const utils = require('../utils');
const rootDir = utils.rootDir();
module.exports = {
src: `${rootDir}/packages/app-mobile/lib/**/*`,
fn: async function() {
const copyOptions = {
excluded: [
`${rootDir}/packages/renderer/node_modules`,
],
};
await utils.copyDir(`${rootDir}/packages/app-mobile/lib`, `${rootDir}/packages/app-cli/build/lib`, copyOptions);
await utils.copyDir(`${rootDir}/packages/app-mobile/lib`, `${rootDir}/packages/app-desktop/lib`, copyOptions);
},
};