(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("JsGenerator", () => {
});
it("generates valid JS file.", async () => {
const tokensFile = path.join(__dirname, Config.tokenFilenames.js);
const tokensFile = path.join(__dirname, Config.tokenFilename + ".js");
expect(fs.existsSync(tokensFile)).toEqual(false);
await run(["", "", "-g", "js"]);
expect(fs.existsSync(tokensFile)).toEqual(true);