Finally, Add tests and linting!

This commit is contained in:
zkldi
2022-01-31 19:23:18 +00:00
parent 6c4598342d
commit 02efe6f95a
28 changed files with 188298 additions and 46976 deletions
+3 -5
View File
@@ -31,16 +31,14 @@ const collections = [];
if (options.all) {
collections.push("folders", "tables");
collections.push(...StaticConfig.allSupportedGames.map(e => `songs-${e}`));
collections.push(...StaticConfig.allSupportedGames.map(e => `charts-${e}`));
collections.push(...StaticConfig.allSupportedGames.map((e) => `songs-${e}`));
collections.push(...StaticConfig.allSupportedGames.map((e) => `charts-${e}`));
} else if (program.args[0]) {
collections.push(program.args[0]);
}
// Add the songs-{game} and charts-{game} collections.
(async () => {
logger.info(`Exporting ${collections.length} collections.`);
@@ -67,4 +65,4 @@ async function ExportCollection(collection) {
fs.writeFileSync(pt, JSON.stringify(data, null, options.useTabs ? "\t" : undefined));
logger.info(`Wrote to ${pt}.`);
}
}