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