diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 36d0faa..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2026 FroeMic - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/apps/demo/fixture-pets/pinchy/pet.json b/apps/demo/fixture-pets/pinchy/pet.json new file mode 100644 index 0000000..6ba51dd --- /dev/null +++ b/apps/demo/fixture-pets/pinchy/pet.json @@ -0,0 +1,6 @@ +{ + "id": "pinchy", + "displayName": "Pinchy", + "description": "A helpful cute nerdy lobster Codex pet.", + "spritesheetPath": "spritesheet.webp" +} diff --git a/apps/demo/fixture-pets/pinchy/spritesheet.webp b/apps/demo/fixture-pets/pinchy/spritesheet.webp new file mode 100644 index 0000000..b795cb7 Binary files /dev/null and b/apps/demo/fixture-pets/pinchy/spritesheet.webp differ diff --git a/apps/demo/test/defaults.test.ts b/apps/demo/test/defaults.test.ts index 2c8f5fb..ef0dfbe 100644 --- a/apps/demo/test/defaults.test.ts +++ b/apps/demo/test/defaults.test.ts @@ -40,7 +40,7 @@ describe("demo defaults", () => { it("builds production fixtures from lightweight demo pets", () => { expect(fixtureScript).toContain('"apps", "demo", "fixture-pets"'); - for (const petId of ["bandit", "carrot", "sapling"]) { + for (const petId of ["bandit", "carrot", "pinchy", "sapling"]) { const petRoot = join(import.meta.dirname, "../fixture-pets", petId); expect(existsSync(join(petRoot, "pet.json"))).toBe(true); diff --git a/packages/core/example-pets/pinchy/pet.json b/packages/core/example-pets/pinchy/pet.json new file mode 100644 index 0000000..6ba51dd --- /dev/null +++ b/packages/core/example-pets/pinchy/pet.json @@ -0,0 +1,6 @@ +{ + "id": "pinchy", + "displayName": "Pinchy", + "description": "A helpful cute nerdy lobster Codex pet.", + "spritesheetPath": "spritesheet.webp" +} diff --git a/packages/core/example-pets/pinchy/spritesheet.webp b/packages/core/example-pets/pinchy/spritesheet.webp new file mode 100644 index 0000000..b795cb7 Binary files /dev/null and b/packages/core/example-pets/pinchy/spritesheet.webp differ diff --git a/packages/core/src/example-pets.ts b/packages/core/src/example-pets.ts index cc0d8ee..862e132 100644 --- a/packages/core/src/example-pets.ts +++ b/packages/core/src/example-pets.ts @@ -1,6 +1,6 @@ import type { CodexPetExample } from "./types.js"; -export type CodexPetExampleId = "sapling" | "carrot" | "bandit"; +export type CodexPetExampleId = "sapling" | "carrot" | "bandit" | "pinchy"; export const CODEX_PET_EXAMPLES = [ { @@ -25,6 +25,13 @@ export const CODEX_PET_EXAMPLES = [ "A cute raccoon Codex companion with a tiny striped tail and bright curious eyes.", manifestPath: "example-pets/bandit/pet.json", spritesheetPath: "example-pets/bandit/spritesheet.webp" + }, + { + id: "pinchy", + displayName: "Pinchy", + description: "A helpful cute nerdy lobster Codex pet.", + manifestPath: "example-pets/pinchy/pet.json", + spritesheetPath: "example-pets/pinchy/spritesheet.webp" } ] as const satisfies readonly CodexPetExample[]; diff --git a/packages/core/test/examples.test.ts b/packages/core/test/examples.test.ts index ef6c3b1..65e0576 100644 --- a/packages/core/test/examples.test.ts +++ b/packages/core/test/examples.test.ts @@ -6,11 +6,12 @@ import { } from "../src/example-pets"; describe("bundled example pets", () => { - it("ships the tree, carrot, and raccoon examples with package assets", () => { + it("ships the tree, carrot, raccoon, and lobster examples with package assets", () => { expect(CODEX_PET_EXAMPLES.map((pet) => pet.id)).toEqual([ "sapling", "carrot", - "bandit" + "bandit", + "pinchy" ]); for (const pet of CODEX_PET_EXAMPLES) {