From 9e7387a281fb4f80dcb0767c886f1d2f01abb2e7 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Wed, 3 Dec 2025 10:00:55 -0800 Subject: [PATCH] feat: add template to make my life easier --- _template/main.spec.ts | 14 ++++++++++++++ _template/main.ts | 16 ++++++++++++++++ tsconfig.json | 2 +- 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 _template/main.spec.ts create mode 100644 _template/main.ts diff --git a/_template/main.spec.ts b/_template/main.spec.ts new file mode 100644 index 0000000..f0d7379 --- /dev/null +++ b/_template/main.spec.ts @@ -0,0 +1,14 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ + +import { describe, it, expect } from "vitest"; +import { doThing } from "./main.js"; + +describe("mineColor", () => { + it("should do the thing", () => { + expect(doThing()).toBe(true); + }); +}); diff --git a/_template/main.ts b/_template/main.ts new file mode 100644 index 0000000..1cba757 --- /dev/null +++ b/_template/main.ts @@ -0,0 +1,16 @@ +/** + * @copyright NHCarrigan + * @license Naomi's Public License + * @author Naomi Carrigan + */ + +/** + * Does a thing. + * @returns The result of the thing. + * @see https://nhcarrigan.com + */ +const doThing = (): boolean => { + return true; +}; + +export { doThing }; diff --git a/tsconfig.json b/tsconfig.json index de77f0e..50a2145 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,5 +4,5 @@ "rootDir": "./src", "noEmit": true }, - "exclude": ["vitest.config.ts"] + "exclude": ["vitest.config.ts", "_template/**/*"] } \ No newline at end of file