-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(create-mud): infer recs components from config (#1278)
Co-authored-by: alvarius <alvarius@lattice.xyz>
- Loading branch information
Showing
49 changed files
with
352 additions
and
1,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
"@latticexyz/cli": major | ||
"@latticexyz/std-client": major | ||
"@latticexyz/store-sync": major | ||
"@latticexyz/store": patch | ||
"@latticexyz/world": patch | ||
"create-mud": major | ||
--- | ||
|
||
RECS components are now dynamically created and inferred from your MUD config when using `syncToRecs`. | ||
|
||
To migrate existing projects after upgrading to this MUD version: | ||
|
||
1. Remove `contractComponents.ts` from `client/src/mud` | ||
2. Remove `components` argument from `syncToRecs` | ||
3. Update `build:mud` and `dev` scripts in `contracts/package.json` to remove tsgen | ||
|
||
```diff | ||
- "build:mud": "mud tablegen && mud worldgen && mud tsgen --configPath mud.config.ts --out ../client/src/mud", | ||
+ "build:mud": "mud tablegen && mud worldgen", | ||
``` | ||
|
||
```diff | ||
- "dev": "pnpm mud dev-contracts --tsgenOutput ../client/src/mud", | ||
+ "dev": "pnpm mud dev-contracts", | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
examples/minimal/packages/client-phaser/src/mud/contractComponents.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
examples/minimal/packages/client-react/src/mud/contractComponents.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 0 additions & 61 deletions
61
examples/minimal/packages/client-vanilla/src/mud/contractComponents.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.