Rename output files
This commit is contained in:
parent
215a322c85
commit
0f622a6c78
1 changed files with 3 additions and 3 deletions
|
@ -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());
|
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());
|
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)}));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue