Skip to content

Commit e45e375

Browse files
authored
feat(create-mud): rip out create-create-app (#3479)
1 parent 567c2ae commit e45e375

20 files changed

Lines changed: 1249 additions & 480 deletions

File tree

.changeset/hip-spoons-confess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-mud": patch
3+
---
4+
5+
Replaced internal usage of `create-create-app` with a simpler recursive copy operation.

.github/workflows/test-published-packages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ jobs:
3232

3333
- name: Test
3434
run: |
35-
pnpm create mud@${{ inputs.tag-or-version }} project --template ${{ matrix.template }}
35+
pnpm create mud@${{ inputs.tag-or-version }} --name project --template ${{ matrix.template }}
36+
pnpm --dir project install
3637
pnpm --dir project run test

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can see MUD's features, both those available and those still in development,
3030
## Quickstart
3131

3232
```
33-
pnpm create mud my-project
33+
pnpm create mud@latest
3434
```
3535

3636
Then follow the directions onscreen.

docs/pages/guides/hello-world/add-chain-client.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ Note that this is not required if you are going to use Lattice chains, [redstone
1111
Use the vanilla template.
1212

1313
```sh copy
14-
pnpm create mud@latest tutorial --template vanilla
14+
pnpm create mud@latest --name tutorial --template vanilla
1515
cd tutorial
16+
pnpm install
17+
pnpm dev
1618
```
1719

1820
You can also use the `react-ecs` or `threejs` templates without any changes to the tutorial.

docs/pages/guides/hello-world/add-system.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ In this tutorial you add a system to decrement the counter and update the applic
1010
Use the vanilla template.
1111

1212
```sh copy
13-
pnpm create mud@latest tutorial --template vanilla
13+
pnpm create mud@latest --name tutorial --template vanilla
1414
cd tutorial
15+
pnpm install
16+
pnpm dev
1517
```
1618

1719
## Add a contract for the new system

docs/pages/guides/hello-world/add-table.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ For the sake of simplicity, we will implement this in the `increment` function r
1111
Use the `vanilla` template.
1212

1313
```sh copy
14-
pnpm create mud@latest tutorial --template vanilla
14+
pnpm create mud@latest --name tutorial --template vanilla
1515
cd tutorial
16+
pnpm install
17+
pnpm dev
1618
```
1719

1820
## Modify the MUD configuration file

docs/pages/guides/hello-world/deploy.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ In this tutorial you deploy a MUD application to our test blockchain, [Garnet](h
88
Use the `vanilla` template.
99

1010
```sh copy
11-
pnpm create mud@latest tutorial --template vanilla
11+
pnpm create mud@latest --name tutorial --template vanilla
1212
cd tutorial
13+
pnpm install
1314
pnpm dev
1415
```
1516

docs/pages/quickstart.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,10 @@ To install the TypeScript templates you need:
107107

108108
To run any of the TypeScript templates:
109109

110-
1. Create the template with pnpm.
111-
If you need, replace `tutorial` with your application name.
110+
1. Create a new project from a template with pnpm.
112111

113112
```sh copy
114-
pnpm create mud@latest tutorial
113+
pnpm create mud@latest
115114
```
116115

117116
<details>
@@ -155,6 +154,7 @@ To run any of the TypeScript templates:
155154

156155
```sh copy
157156
cd tutorial
157+
pnpm install
158158
pnpm dev
159159
```
160160

packages/create-mud/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public/
9999

100100
# End of https://www.gitignore.io/api/node
101101

102+
templates
102103

103104
# Created by `pnpm test`
104105
test-project

packages/create-mud/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
Create a new MUD project
44

5-
> created by [create-create-app](https://github.com/uetchy/create-create-app).
6-
75
## Usage
86

9-
```bash
10-
npm create mud <name>
7+
```
8+
pnpm create mud@latest
119
```

0 commit comments

Comments
 (0)