- Implement `ExampleDataService` to export/import Characters, Equipments, Poses, Expressions, and Generations. - Add `generate-example` script to `package.json` to generate example data from current DB. - Add startup logic in `src/index.ts` to seed example data if system is uninitialized and no data exists. - Store system initialization state in `Setting` table. - Add comprehensive tests for `ExampleDataService` in `src/service/example-data.test.ts` mocking filesystem and database operations.
69 lines
2.0 KiB
JSON
69 lines
2.0 KiB
JSON
{
|
|
"name": "forgery",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun run --hot src/index.ts",
|
|
"lint": "eslint .",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit",
|
|
"generate-example": "bun run src/scripts/generate-example-data.ts"
|
|
},
|
|
"dependencies": {
|
|
"@google/genai": "^1.40.0",
|
|
"@hono/zod-validator": "^0.7.6",
|
|
"@libsql/client": "^0.17.0",
|
|
"@prisma/adapter-libsql": "^7.3.0",
|
|
"@prisma/client": "^7.3.0",
|
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
"@radix-ui/react-label": "^2.1.8",
|
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
"@radix-ui/react-separator": "^1.1.8",
|
|
"@radix-ui/react-slot": "^1.2.4",
|
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
"@types/react": "^19.2.13",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@types/tar": "^6.1.13",
|
|
"bun-plugin-tailwind": "^0.1.2",
|
|
"class-variance-authority": "^0.7.1",
|
|
"clsx": "^2.1.1",
|
|
"framer-motion": "^12.33.0",
|
|
"hono": "^4.11.8",
|
|
"lucide-react": "^0.563.0",
|
|
"next-themes": "^0.4.6",
|
|
"openai": "^6.18.0",
|
|
"radix-ui": "^1.4.3",
|
|
"react": "^19.2.4",
|
|
"react-dom": "^19.2.4",
|
|
"react-intersection-observer": "^10.0.2",
|
|
"react-router-dom": "^7.13.0",
|
|
"sharp": "^0.34.5",
|
|
"sonner": "^2.0.7",
|
|
"tailwind-merge": "^3.4.0",
|
|
"tailwindcss": "^4.1.18",
|
|
"tar": "^7.5.7",
|
|
"tw-animate-css": "^1.4.0",
|
|
"ulidx": "^2.4.1",
|
|
"zod": "^4.3.6",
|
|
"zod-to-json-schema": "^3.25.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
"@playwright/test": "^1.58.2",
|
|
"@prisma/config": "^7.3.0",
|
|
"@types/bun": "^1.3.8",
|
|
"@typescript-eslint/eslint-plugin": "^8.54.0",
|
|
"@typescript-eslint/parser": "^8.54.0",
|
|
"dotenv": "^17.2.4",
|
|
"eslint": "^10.0.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"prettier": "^3.8.1",
|
|
"prisma": "^7.3.0",
|
|
"typescript": "^5.9.3",
|
|
"typescript-eslint": "^8.54.0"
|
|
}
|
|
}
|