mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 09:18:25 +03:00
Finally, Add tests and linting!
This commit is contained in:
@@ -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}.`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user