Update all the JS dependencies (#134)

* scripts/meta: upgrade all JS dependencies

* ci: re-lock Node.js version to lts/erbium...

... and update Yarn before building the website

* packages: remove all the package-lock.json files...

... since we are using Yarn
This commit is contained in:
liushuyu
2020-05-26 08:51:18 -06:00
committed by GitHub
parent dd2dbed215
commit 2dded7f1fb
13 changed files with 1419 additions and 9300 deletions

View File

@@ -1,6 +1,6 @@
var fs = require('fs');
var util = require('util');
var logger = require('winston');
var winston = require('winston');
var sanitizeHtml = require('sanitize-html');
@@ -10,6 +10,14 @@ var exec = require('sync-exec');
var inputDirectory = './citra.wiki/';
var outputDirectory = '../../site/content/wiki/';
const logger = winston.createLogger({
level: 'info',
format: winston.format.simple(),
transports: [
new winston.transports.Console()
]
});
// The URL
function url(title) {
return '/wiki/' + title.replace(/\s+/g, '-').toLowerCase();
@@ -20,6 +28,7 @@ if (fs.existsSync(inputDirectory)) {
del.sync(inputDirectory, {force: true});
}
logger.info('Cloning citra.wiki repository');
exec('git clone https://github.com/citra-emu/citra.wiki.git');
if (fs.existsSync(outputDirectory) == false) {