(tokens) add TS generator and re-organize the repo

Add TS Generator which is a lot based on JS Generator.
This commit is contained in:
Nathan Vasse
2023-01-02 12:06:00 +01:00
committed by NathanVss
parent 2876d29025
commit 66e6aad84d
16 changed files with 159 additions and 35 deletions

View File

@@ -19,7 +19,7 @@ describe("CssGenerator", () => {
});
const testSelector = async (opt: string) => {
const cssTokensFile = path.join(__dirname, Config.tokenFilenames.css);
const cssTokensFile = path.join(__dirname, Config.tokenFilename + ".css");
expect(fs.existsSync(cssTokensFile)).toEqual(false);
await run(["", "", "-g", "css", opt, "html"]);
expect(fs.existsSync(cssTokensFile)).toEqual(true);