Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

6 changes: 6 additions & 0 deletions apps/demo/fixture-pets/pinchy/pet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "pinchy",
"displayName": "Pinchy",
"description": "A helpful cute nerdy lobster Codex pet.",
"spritesheetPath": "spritesheet.webp"
}
Binary file added apps/demo/fixture-pets/pinchy/spritesheet.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/demo/test/defaults.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions packages/core/example-pets/pinchy/pet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"id": "pinchy",
"displayName": "Pinchy",
"description": "A helpful cute nerdy lobster Codex pet.",
"spritesheetPath": "spritesheet.webp"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion packages/core/src/example-pets.ts
Original file line number Diff line number Diff line change
@@ -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 = [
{
Expand All @@ -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[];

Expand Down
5 changes: 3 additions & 2 deletions packages/core/test/examples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading