@dithrkit/create 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @dithrkit/create
|
|
2
|
+
|
|
3
|
+
Scaffold a new [dithr](https://github.com/dithrkit/dithr) project.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm create @dithrkit my-game
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Options
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
--template, -t <name> Template to use (blank, platformer)
|
|
15
|
+
--typescript, --ts Scaffold a TypeScript project
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Examples
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# JavaScript project with the blank template
|
|
22
|
+
npm create @dithrkit my-game
|
|
23
|
+
|
|
24
|
+
# TypeScript project with the platformer template
|
|
25
|
+
npm create @dithrkit my-game --ts --template platformer
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## What gets created
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
my-game/
|
|
32
|
+
├── cart.json
|
|
33
|
+
├── package.json
|
|
34
|
+
├── eslint.config.js
|
|
35
|
+
├── .prettierrc
|
|
36
|
+
├── .editorconfig
|
|
37
|
+
├── .gitignore
|
|
38
|
+
├── README.md
|
|
39
|
+
├── src/
|
|
40
|
+
│ └── main.js (or main.ts)
|
|
41
|
+
└── assets/
|
|
42
|
+
├── sprites/
|
|
43
|
+
├── maps/
|
|
44
|
+
├── sfx/
|
|
45
|
+
└── music/
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dithrkit/create",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Scaffold a new dithr project — use with npm create @dithrkit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "dithrkit",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/dithrkit/dithr.git",
|
|
20
|
+
"url": "git+https://github.com/dithrkit/dithr.git",
|
|
21
21
|
"directory": "packages/create"
|
|
22
22
|
},
|
|
23
23
|
"bin": {
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@dithrkit/sdk": "0.1.
|
|
33
|
+
"@dithrkit/sdk": "0.1.3"
|
|
34
34
|
}
|
|
35
35
|
}
|