You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-06 23:56:13 +02:00
Tools: Fix desktop build performance issue (#6762)
This commit is contained in:
@ -48,20 +48,6 @@ function convertJsx(paths) {
|
||||
});
|
||||
}
|
||||
|
||||
function build(path) {
|
||||
chdir(path);
|
||||
|
||||
const result = spawnSync('yarn', ['run', 'build'], { shell: true });
|
||||
if (result.status !== 0) {
|
||||
const msg = [];
|
||||
if (result.stdout) msg.push(result.stdout.toString());
|
||||
if (result.stderr) msg.push(result.stderr.toString());
|
||||
console.error(msg.join('\n'));
|
||||
if (result.error) console.error(result.error);
|
||||
process.exit(result.status);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = function() {
|
||||
convertJsx([
|
||||
`${__dirname}/../gui`,
|
||||
@ -70,8 +56,6 @@ module.exports = function() {
|
||||
`${__dirname}/../plugins`,
|
||||
]);
|
||||
|
||||
build(`${__dirname}/../../pdf-viewer`);
|
||||
|
||||
const libContent = [
|
||||
fs.readFileSync(`${basePath}/packages/lib/string-utils-common.js`, 'utf8'),
|
||||
fs.readFileSync(`${basePath}/packages/lib/markJsUtils.js`, 'utf8'),
|
||||
|
Reference in New Issue
Block a user