1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-desktop/tools/compileScripts.js

16 lines
483 B
JavaScript
Raw Normal View History

const fs = require('fs-extra');
2020-11-05 18:58:23 +02:00
const basePath = `${__dirname}/../../..`;
module.exports = function() {
const libContent = [
2020-11-05 18:58:23 +02:00
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();
};