2017-11-15 01:01:19 +02:00
|
|
|
const fs = require('fs-extra');
|
|
|
|
|
2020-11-05 18:58:23 +02:00
|
|
|
const basePath = `${__dirname}/../../..`;
|
2017-11-15 01:01:19 +02:00
|
|
|
|
2020-02-21 00:59:18 +02:00
|
|
|
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'),
|
2020-02-21 00:59:18 +02:00
|
|
|
];
|
2019-01-18 19:56:56 +02:00
|
|
|
|
2020-02-21 00:59:18 +02:00
|
|
|
fs.writeFileSync(`${__dirname}/../gui/note-viewer/lib.js`, libContent.join('\n'), 'utf8');
|
|
|
|
|
|
|
|
return Promise.resolve();
|
|
|
|
};
|