1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00
joplin/packages/app-desktop/tools/compileScripts.js
2023-01-20 14:35:22 +00:00

16 lines
483 B
JavaScript

const fs = require('fs-extra');
const basePath = `${__dirname}/../../..`;
module.exports = function() {
const libContent = [
fs.readFileSync(`${basePath}/packages/lib/string-utils-common.js`, 'utf8'),
fs.readFileSync(`${basePath}/packages/lib/markJsUtils.js`, 'utf8'),
fs.readFileSync(`${basePath}/packages/lib/renderers/webviewLib.js`, 'utf8'),
];
fs.writeFileSync(`${__dirname}/../gui/note-viewer/lib.js`, libContent.join('\n'), 'utf8');
return Promise.resolve();
};