JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 109
  • Score
    100M100P100Q86722F
  • License MIT

Scaffold a new dithr project — use with npm create @dithrkit

Package Exports

  • @dithrkit/create
  • @dithrkit/create/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@dithrkit/create) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@dithrkit/create

Scaffold a new dithr project.

Usage

npm create @dithrkit my-game

Options

--template, -t <name>  Template to use (blank, platformer)
--typescript, --ts     Scaffold a TypeScript project

Examples

# JavaScript project with the blank template
npm create @dithrkit my-game

# TypeScript project with the platformer template
npm create @dithrkit my-game --ts --template platformer

What gets created

my-game/
├── cart.json
├── package.json
├── eslint.config.js
├── .prettierrc
├── .editorconfig
├── .gitignore
├── README.md
├── src/
│   └── main.js (or main.ts)
└── assets/
    ├── sprites/
    ├── maps/
    ├── sfx/
    └── music/

License

MIT