1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-desktop/tools/copyPluginAssets.js
2020-11-05 16:58:23 +00:00

19 lines
486 B
JavaScript

const utils = require('@joplinapp/tools/gulp/utils');
async function main() {
const rootDir = `${__dirname}/..`;
// TODO: should take from node_modules/@joplinapp/renderer
const sourceDir = `${rootDir}/../../packages/renderer/assets`;
const destDirs = [
`${rootDir}/gui/note-viewer/pluginAssets`,
`${rootDir}/pluginAssets`,
];
for (const destDir of destDirs) {
console.info(`Copying to ${destDir}`);
await utils.copyDir(sourceDir, destDir);
}
}
module.exports = main;