@dithrkit/sdk
v0.2.0
Published
SDK and CLI for the dithr fantasy console
Downloads
1,056
Maintainers
Readme
@dithrkit/sdk
SDK and CLI for the dithr fantasy console.
Installation
npm install @dithrkit/sdkOr scaffold a new project (installs the SDK automatically):
npm create @dithrkit my-gameCLI Commands
| Command | Description |
| ----------------- | ---------------------------------------------- |
| dithrkit run | Run natively with hot-reload |
| dithrkit dev | Build TS in watch mode + run (native dev loop) |
| dithrkit build | Bundle JS/TS source via esbuild |
| dithrkit serve | Build and serve in the browser |
| dithrkit watch | Build, serve, and live-reload on file changes |
| dithrkit export | Export for web or desktop distribution |
TypeScript Support
The SDK ships type definitions for the dithr API. Scaffolded TypeScript projects automatically extend the shared tsconfig:
{
"extends": "@dithrkit/sdk/configs/tsconfig.base.json",
"include": ["src/**/*.ts"]
}ESLint Config
A shared ESLint config is available for both JS and TS projects:
const dithrConfig = require("@dithrkit/sdk/configs/eslint");
module.exports = [
...dithrConfig.ts, // or dithrConfig.js
];Documentation
License
MIT
