{"_id":"@distyopoly/disty-craft-core","name":"@distyopoly/disty-craft-core","dist-tags":{"latest":"0.0.1-alpha.1"},"versions":{"0.0.1-alpha.1":{"name":"@distyopoly/disty-craft-core","version":"0.0.1-alpha.1","description":"Contract package for the Disty-Craft framework","keywords":[],"author":{"name":"Simofi Levente"},"license":"GPL-3.0-or-later","devDependencies":{"@commitlint/cli":"^20.1.0","@commitlint/config-conventional":"^20.0.0","husky":"^9.1.7","tsdown":"^0.16.4"},"type":"module","main":"./dist/index.mjs","private":false,"module":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":"./dist/index.mjs","./utils":"./dist/utils.mjs","./package.json":"./package.json"},"repository":{"type":"git","url":"git+https://github.com/Distyopoly/disty-craft-core.git"},"bugs":{"url":"https://github.com/Distyopoly/disty-craft-core/issues"},"homepage":"https://github.com/Distyopoly/disty-craft-core#readme","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"tsdown","dev":"tsdown --watch"},"_id":"@distyopoly/disty-craft-core@0.0.1-alpha.1","_integrity":"sha512-qCl9Tb27112/nV/A9Hf8zvr8gXxnkBfFry2YkEbibATtMmJc2km+nS/T/2zhWlEYfK/59aLO968acovXCSTd4Q==","_resolved":"/tmp/6b19a399cdd502e0e7a003f96d6b212b/distyopoly-disty-craft-core-0.0.1-alpha.1.tgz","_from":"file:distyopoly-disty-craft-core-0.0.1-alpha.1.tgz","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-qCl9Tb27112/nV/A9Hf8zvr8gXxnkBfFry2YkEbibATtMmJc2km+nS/T/2zhWlEYfK/59aLO968acovXCSTd4Q==","shasum":"2a154462702032c1fdedeaa3cf2d731a19257869","tarball":"https://registry.npmjs.org/@distyopoly/disty-craft-core/-/disty-craft-core-0.0.1-alpha.1.tgz","fileCount":6,"unpackedSize":4528,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICdgiETsClELmpi6M2sjNF46DkkTiCx3Z5CpuYy8W4i8AiAvuQuOKjfYnMxUJvoDB1KntSgkCR/yaa2FSoa9qrVFJQ=="}]},"_npmUser":{"name":"leswell","email":"main.leswell+npm@gmail.com"},"directories":{},"maintainers":[{"name":"leswell","email":"main.leswell+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/disty-craft-core_0.0.1-alpha.1_1764934253663_0.23122143980557341"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-05T11:30:53.468Z","0.0.1-alpha.1":"2025-12-05T11:30:53.807Z","modified":"2025-12-05T11:30:54.243Z"},"maintainers":[{"name":"leswell","email":"main.leswell+npm@gmail.com"}],"description":"Contract package for the Disty-Craft framework","homepage":"https://github.com/Distyopoly/disty-craft-core#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Distyopoly/disty-craft-core.git"},"author":{"name":"Simofi Levente"},"bugs":{"url":"https://github.com/Distyopoly/disty-craft-core/issues"},"license":"GPL-3.0-or-later","readme":"# Contract\n\n## Project Structure:\n\nThe following structure is expected by the framework.\n\n```bash\n.\n└── src/\n    ├── card/ # containing cards (OPTIONAL in future)\n    │   └── generated.ts # OPTIONAL\n    ├── component/\n    │   └── StateComponent.tsx\n    ├── GameRecipe.ts\n    └── meta/\n    │   ├── banner.jpg\n    │   ├── icon.svg\n    │   └── Metadata.ts # exporting GameMetadata instance\n    └── state/\n        └── GameState.ts # exporting the GameState\n```\n\n### card/\nDirectory of files, each providing a default export of a `Card` instance.\n\nIt could contain a `generated.ts` file default-exporting a list of programmatically generated files.\n\n### state/GameState.ts\nIt is expected that this file exports a named `GameState` type and an initial factory with the following signature: \n`export function createInitialState(params: InitParams): GameState`\n\n### component/StateComponent.tsx\nThis file is expected to default-export a tsx component representing the game state.\n\n**Recommandation:** Use state component generators from the lib.\n\nThe component is expected to receive an api parameter:\n\n```tsx\nexport default function GameStateComponent (params: { api: StateApi }) {\n\n}\n```\n\n### ignored entries\nFiles and folders starting with an  `_` (underscore) are expected to be ignored by the framework. \n\n# Library\n\n## State Component Generators","readmeFilename":"README.md","_rev":"1-67adfc789d30dc7e26db18ea7bbf0c9e"}