Codacy update for scripts
This commit is contained in:
@ -63,7 +63,7 @@ if (
|
|||||||
data.slice(data.lastIndexOf('```js'), data.lastIndexOf('```')) +
|
data.slice(data.lastIndexOf('```js'), data.lastIndexOf('```')) +
|
||||||
data.slice(data.lastIndexOf('```'))
|
data.slice(data.lastIndexOf('```'))
|
||||||
);
|
);
|
||||||
output += `${data}\n<br>${misc.link('⬆ Back to top', misc.anchor('Table of Contents'))}\n\n`
|
output += `${data}\n<br>${misc.link('⬆ Back to top', misc.anchor('Table of Contents'))}\n\n`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write to the README file of the archive
|
// Write to the README file of the archive
|
||||||
|
|||||||
@ -94,7 +94,7 @@ snippetFiles
|
|||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(path.join(TEST_PATH, 'testlog'), `Test log for: ${new Date().toString()}\n`);
|
fs.writeFileSync(path.join(TEST_PATH, 'testlog'), `Test log for: ${new Date().toString()}\n`);
|
||||||
childProcess.execSync(`npm test`);
|
childProcess.execSync('npm test');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
fs.appendFileSync(path.join(TEST_PATH, 'testlog'));
|
fs.appendFileSync(path.join(TEST_PATH, 'testlog'));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,12 +87,6 @@ try {
|
|||||||
startPart = fs.readFileSync(path.join(staticPartsPath, 'page-start.html'), 'utf8');
|
startPart = fs.readFileSync(path.join(staticPartsPath, 'page-start.html'), 'utf8');
|
||||||
endPart = fs.readFileSync(path.join(staticPartsPath, 'page-end.html'), 'utf8');
|
endPart = fs.readFileSync(path.join(staticPartsPath, 'page-end.html'), 'utf8');
|
||||||
|
|
||||||
beginnerStartPart = fs.readFileSync(
|
|
||||||
path.join(staticPartsPath, 'beginner-page-start.html'),
|
|
||||||
'utf8'
|
|
||||||
);
|
|
||||||
beginnerEndPart = fs.readFileSync(path.join(staticPartsPath, 'beginner-page-end.html'), 'utf8');
|
|
||||||
|
|
||||||
archivedStartPart = fs.readFileSync(
|
archivedStartPart = fs.readFileSync(
|
||||||
path.join(staticPartsPath, 'archived-page-start.html'),
|
path.join(staticPartsPath, 'archived-page-start.html'),
|
||||||
'utf8'
|
'utf8'
|
||||||
|
|||||||
Reference in New Issue
Block a user