Rename output files

This commit is contained in:
Jake Howard 2023-04-20 21:13:23 +01:00
parent 215a322c85
commit 0f622a6c78
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -39,13 +39,13 @@ async function main() {
};
}
await writeFile(join(DIST_DIR, "out.json"), JSON.stringify(colours));
await writeFile(join(DIST_DIR, "linguist.json"), JSON.stringify(colours));
const cssTemplate = Handlebars.compile((await readFile(join(ROOT_DIR, "templates/template.css"))).toString());
await writeFile(join(DIST_DIR, "out.css"), cssTemplate({data: Object.values(colours)}));
await writeFile(join(DIST_DIR, "linguist.css"), cssTemplate({data: Object.values(colours)}));
const scssTemplate = Handlebars.compile((await readFile(join(ROOT_DIR, "templates/template.scss"))).toString());
await writeFile(join(DIST_DIR, "out.scss"), scssTemplate({data: Object.values(colours)}));
await writeFile(join(DIST_DIR, "linguist.scss"), scssTemplate({data: Object.values(colours)}));
}