create-mud 2.0.0-alpha.78 → 2.0.0-alpha.8

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.
Files changed (67) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/templates/minimal/package.json +18 -0
  3. package/{templates → dist/templates}/minimal/packages/client/package.json +17 -15
  4. package/dist/templates/minimal/packages/client/vite.config.ts +10 -0
  5. package/{templates → dist/templates}/minimal/packages/contracts/.prettierrc +1 -0
  6. package/{templates → dist/templates}/minimal/packages/contracts/foundry.toml +1 -1
  7. package/{templates → dist/templates}/minimal/packages/contracts/package.json +15 -19
  8. package/dist/templates/minimal/packages/contracts/remappings.txt +9 -0
  9. package/dist/templates/minimal/pnpm-workspace.yaml +2 -0
  10. package/dist/templates/react/package.json +18 -0
  11. package/{templates → dist/templates}/react/packages/client/package.json +22 -21
  12. package/dist/templates/react/packages/client/vite.config.ts +12 -0
  13. package/{templates → dist/templates}/react/packages/contracts/.prettierrc +1 -0
  14. package/{templates → dist/templates}/react/packages/contracts/foundry.toml +1 -1
  15. package/{templates → dist/templates}/react/packages/contracts/package.json +15 -19
  16. package/dist/templates/react/packages/contracts/remappings.txt +9 -0
  17. package/dist/templates/react/pnpm-workspace.yaml +2 -0
  18. package/package.json +11 -12
  19. package/templates/minimal/package.json +0 -17
  20. package/templates/minimal/packages/client/vite.config.ts +0 -29
  21. package/templates/minimal/packages/contracts/remappings.txt +0 -8
  22. package/templates/react/package.json +0 -17
  23. package/templates/react/packages/client/vite.config.ts +0 -32
  24. package/templates/react/packages/contracts/remappings.txt +0 -8
  25. /package/{templates → dist/templates}/minimal/.gitignore +0 -0
  26. /package/{templates → dist/templates}/minimal/.vscode/settings.json +0 -0
  27. /package/{templates → dist/templates}/minimal/packages/client/.eslintrc +0 -0
  28. /package/{templates → dist/templates}/minimal/packages/client/.gitignore +0 -0
  29. /package/{templates → dist/templates}/minimal/packages/client/index.html +0 -0
  30. /package/{templates → dist/templates}/minimal/packages/client/src/config.ts +0 -0
  31. /package/{templates → dist/templates}/minimal/packages/client/src/index.ts +0 -0
  32. /package/{templates → dist/templates}/minimal/packages/client/tsconfig.json +0 -0
  33. /package/{templates → dist/templates}/minimal/packages/contracts/.gitignore +0 -0
  34. /package/{templates → dist/templates}/minimal/packages/contracts/.solhint.json +0 -0
  35. /package/{templates → dist/templates}/minimal/packages/contracts/chainSpec.json +0 -0
  36. /package/{templates → dist/templates}/minimal/packages/contracts/deploy.json +0 -0
  37. /package/{templates → dist/templates}/minimal/packages/contracts/exports.sh +0 -0
  38. /package/{templates → dist/templates}/minimal/packages/contracts/src/components/CounterComponent.sol +0 -0
  39. /package/{templates → dist/templates}/minimal/packages/contracts/src/libraries/LibMath.sol +0 -0
  40. /package/{templates → dist/templates}/minimal/packages/contracts/src/systems/IncrementSystem.sol +0 -0
  41. /package/{templates → dist/templates}/minimal/packages/contracts/src/systems/README.md +0 -0
  42. /package/{templates → dist/templates}/minimal/packages/contracts/src/test/Deploy.sol +0 -0
  43. /package/{templates → dist/templates}/minimal/packages/contracts/src/test/Deploy.t.sol +0 -0
  44. /package/{templates → dist/templates}/minimal/packages/contracts/src/test/LibDeploy.sol +0 -0
  45. /package/{templates → dist/templates}/minimal/packages/contracts/tsconfig.json +0 -0
  46. /package/{templates → dist/templates}/react/.gitignore +0 -0
  47. /package/{templates → dist/templates}/react/.vscode/settings.json +0 -0
  48. /package/{templates → dist/templates}/react/packages/client/.eslintrc +0 -0
  49. /package/{templates → dist/templates}/react/packages/client/.gitignore +0 -0
  50. /package/{templates → dist/templates}/react/packages/client/index.html +0 -0
  51. /package/{templates → dist/templates}/react/packages/client/src/App.tsx +0 -0
  52. /package/{templates → dist/templates}/react/packages/client/src/config.ts +0 -0
  53. /package/{templates → dist/templates}/react/packages/client/src/index.tsx +0 -0
  54. /package/{templates → dist/templates}/react/packages/client/tsconfig.json +0 -0
  55. /package/{templates → dist/templates}/react/packages/contracts/.gitignore +0 -0
  56. /package/{templates → dist/templates}/react/packages/contracts/.solhint.json +0 -0
  57. /package/{templates → dist/templates}/react/packages/contracts/chainSpec.json +0 -0
  58. /package/{templates → dist/templates}/react/packages/contracts/deploy.json +0 -0
  59. /package/{templates → dist/templates}/react/packages/contracts/exports.sh +0 -0
  60. /package/{templates → dist/templates}/react/packages/contracts/src/components/CounterComponent.sol +0 -0
  61. /package/{templates → dist/templates}/react/packages/contracts/src/libraries/LibMath.sol +0 -0
  62. /package/{templates → dist/templates}/react/packages/contracts/src/systems/IncrementSystem.sol +0 -0
  63. /package/{templates → dist/templates}/react/packages/contracts/src/systems/README.md +0 -0
  64. /package/{templates → dist/templates}/react/packages/contracts/src/test/Deploy.sol +0 -0
  65. /package/{templates → dist/templates}/react/packages/contracts/src/test/Deploy.t.sol +0 -0
  66. /package/{templates → dist/templates}/react/packages/contracts/src/test/LibDeploy.sol +0 -0
  67. /package/{templates → dist/templates}/react/packages/contracts/tsconfig.json +0 -0
package/dist/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var t=require("create-create-app"),r=require("path");var e={name:"create-mud",description:"Create a new MUD project",version:"2.0.0-alpha.78+cf5f4bfe",author:"Lattice <mud@lattice.xyz>",license:"MIT",bin:"dist/cli.js",files:["dist","templates"],scripts:{prepare:"yarn build",build:"tsup src/cli.ts --minify",clean:"shx rm -rf lib",dev:"tsup src/cli.ts --watch",prepublishOnly:"npm run clean && npm run build",test:'echo "TODO"',release:"npm publish --access=public"},dependencies:{"create-create-app":"git+https://github.com/holic/create-create-app#e5c8bb449033418ad8518fc73f72c1a07eab2577"},devDependencies:{"@types/node":"^17.0.29",shx:"^0.3.4",tsup:"^5.12.1",typescript:"^4.9.5"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"},gitHead:"cf5f4bfe0d1d14e70efbf10ebef47d39f39e7239"};var i=(0,r.resolve)(__dirname,"..","templates");(0,t.create)("create-mud",{templateRoot:i,defaultTemplate:"minimal",promptForDescription:!1,promptForAuthor:!1,promptForEmail:!1,promptForLicense:!1,promptForTemplate:!0,caveat:({answers:a})=>`Done! Play in the MUD with \`cd ${a.name}\` and \`yarn dev\``,extra:{"mud-version":{type:"input",describe:"The version of MUD packages to use, defaults to latest",default:e.version}}});
2
+ "use strict";var t=require("create-create-app"),a=require("path");var e={name:"create-mud",version:"2.0.0-alpha.8+fbe2c897",description:"Create a new MUD project",license:"MIT",author:"Lattice <mud@lattice.xyz>",bin:"dist/cli.js",files:["dist"],scripts:{build:"tsup src/cli.ts --minify && ./scripts/copy-templates.sh",clean:"rimraf dist",dev:"tsup src/cli.ts --watch",prepublishOnly:"npm run clean && npm run build",release:"npm publish --access=public",test:"pnpm test:minimal && pnpm test:react","test:minimal":"dist/cli.js test-project --template minimal && rimraf test-project","test:react":"dist/cli.js test-project --template react && rimraf test-project"},dependencies:{"create-create-app":"git+https://github.com/holic/create-create-app#74376c59b48a04aabbe94d9cacfe9cb1cecccd63"},devDependencies:{"@types/node":"^17.0.29",tsup:"^5.12.1",typescript:"^4.9.5"},publishConfig:{access:"public",registry:"https://registry.npmjs.org"},gitHead:"fbe2c897aaf2e88c02ce9031c06dae4560c3cf69"};var i=(0,a.resolve)(__dirname,"..","dist","templates");(0,t.create)("create-mud",{templateRoot:i,defaultTemplate:"minimal",defaultPackageManager:"pnpm",promptForDescription:!1,promptForAuthor:!1,promptForEmail:!1,promptForLicense:!1,promptForTemplate:!0,caveat:({answers:s,packageManager:r})=>`Done! Play in the MUD with \`cd ${s.name}\` and \`${r} run dev\``,extra:{"mud-version":{type:"input",describe:"The version of MUD packages to use, defaults to latest",default:e.version}}});
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "mud-template-minimal",
3
+ "private": true,
4
+ "scripts": {
5
+ "build": "pnpm recursive run build",
6
+ "dev": "run-pty % pnpm dev:node % pnpm dev:client % pnpm dev:contracts",
7
+ "dev:client": "pnpm --filter 'client' run dev",
8
+ "dev:contracts": "pnpm --filter 'contracts' dev",
9
+ "dev:node": "pnpm --filter 'contracts' devnode"
10
+ },
11
+ "devDependencies": {
12
+ "run-pty": "^4.0.3"
13
+ },
14
+ "engines": {
15
+ "node": "18.x",
16
+ "pnpm": "8.x"
17
+ }
18
+ }
@@ -1,29 +1,24 @@
1
1
  {
2
2
  "name": "client",
3
- "license": "MIT",
4
- "private": true,
5
3
  "version": "0.0.0",
4
+ "private": true,
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "scripts": {
8
+ "build": "vite build",
8
9
  "dev": "vite",
9
- "build": "tsc && vite build",
10
10
  "preview": "vite preview"
11
11
  },
12
- "devDependencies": {
13
- "@typescript-eslint/eslint-plugin": "^5.46.1",
14
- "@typescript-eslint/parser": "^5.46.1",
15
- "eslint": "^8.29.0",
16
- "typescript": "^4.9.5",
17
- "vite": "^3.2.3"
18
- },
19
12
  "dependencies": {
20
13
  "@improbable-eng/grpc-web": "^0.15.0",
21
- "@latticexyz/network": "{{mud-version}}",
22
- "@latticexyz/recs": "{{mud-version}}",
23
- "@latticexyz/services": "{{mud-version}}",
24
- "@latticexyz/std-client": "{{mud-version}}",
25
- "@latticexyz/utils": "{{mud-version}}",
14
+ "@latticexyz/network": "link:../../../../packages/network",
15
+ "@latticexyz/react": "link:../../../../packages/react",
16
+ "@latticexyz/recs": "link:../../../../packages/recs",
17
+ "@latticexyz/services": "link:../../../../packages/services",
18
+ "@latticexyz/std-client": "link:../../../../packages/std-client",
19
+ "@latticexyz/utils": "link:../../../../packages/utils",
26
20
  "async-mutex": "^0.4.0",
21
+ "contracts": "workspace:*",
27
22
  "ethers": "^5.7.2",
28
23
  "mobx": "^6.7.0",
29
24
  "nice-grpc": "^2.0.1",
@@ -31,5 +26,12 @@
31
26
  "proxy-deep": "^3.1.1",
32
27
  "react": "^18.2.0",
33
28
  "threads": "^1.7.0"
29
+ },
30
+ "devDependencies": {
31
+ "@typescript-eslint/eslint-plugin": "^5.46.1",
32
+ "@typescript-eslint/parser": "^5.46.1",
33
+ "eslint": "^8.29.0",
34
+ "typescript": "^4.9.5",
35
+ "vite": "^4.2.1"
34
36
  }
35
37
  }
@@ -0,0 +1,10 @@
1
+ import { defineConfig } from "vite";
2
+
3
+ export default defineConfig({
4
+ server: {
5
+ port: 3000,
6
+ fs: {
7
+ strict: false,
8
+ },
9
+ },
10
+ });
@@ -1,4 +1,5 @@
1
1
  {
2
+ "plugins": ["prettier-plugin-solidity"],
2
3
  "printWidth": 120,
3
4
  "semi": true,
4
5
  "tabWidth": 2,
@@ -5,7 +5,7 @@ fuzz_runs = 256
5
5
  optimizer = true
6
6
  optimizer_runs = 3000
7
7
  verbosity = 1
8
- libs = ["../../node_modules", "../../../mud"]
9
8
  src = "src"
10
9
  test = "src/test"
11
10
  out = "out"
11
+ allow_paths = ["../../node_modules", "../../../../packages"]
@@ -1,33 +1,31 @@
1
1
  {
2
2
  "name": "contracts",
3
- "license": "MIT",
4
3
  "version": "0.0.0",
5
4
  "private": true,
5
+ "license": "MIT",
6
6
  "scripts": {
7
- "----- EXTERNAL -----": "---------------------------",
8
- "prepare": "mud types",
9
- "devnode": "mud devnode",
10
- "test": "mud test",
11
- "types": "mud types",
12
- "dev": "mud deploy-contracts --dev --watch --openUrl http://localhost:3000?dev=true",
7
+ "build": "mud types",
13
8
  "deploy": "mud deploy-contracts",
14
- "lint": "yarn prettier && yarn solhint",
15
- "----- INTERNAL -----": "---------------------------",
9
+ "dev": "mud deploy-contracts --dev --watch --openUrl http://localhost:3000?dev=true",
10
+ "devnode": "mud devnode",
11
+ "lint": "prettier && solhint",
16
12
  "prettier": "prettier --write 'src/**/*.sol'",
17
- "solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix"
13
+ "solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
14
+ "test": "mud test",
15
+ "types": "mud types"
18
16
  },
19
17
  "devDependencies": {
20
18
  "@ethersproject/abi": "^5.7.0",
21
19
  "@ethersproject/bytes": "^5.7.0",
22
- "@ethersproject/providers": "^5.7.0",
23
- "@latticexyz/cli": "{{mud-version}}",
24
- "@latticexyz/solecs": "{{mud-version}}",
25
- "@latticexyz/std-contracts": "{{mud-version}}",
20
+ "@ethersproject/providers": "^5.7.2",
21
+ "@latticexyz/cli": "link:../../../../packages/cli",
22
+ "@latticexyz/solecs": "link:../../../../packages/solecs",
23
+ "@latticexyz/std-contracts": "link:../../../../packages/std-contracts",
26
24
  "@solidstate/contracts": "^0.0.52",
27
- "@typechain/ethers-v5": "^10.1.1",
25
+ "@typechain/ethers-v5": "^10.2.0",
28
26
  "@types/node": "^18.11.9",
29
27
  "ds-test": "https://github.com/dapphub/ds-test.git#c9ce3f25bde29fc5eb9901842bf02850dfd2d084",
30
- "ethers": "^5.7.1",
28
+ "ethers": "^5.7.2",
31
29
  "forge-std": "https://github.com/foundry-rs/forge-std.git#b4f121555729b3afb3c5ffccb62ff4b6e2818fd3",
32
30
  "memmove": "https://github.com/brockelmore/memmove.git#ffd71cd77b1708574ef46a667b23ca3a5cc9fa27",
33
31
  "prettier": "^2.8.4",
@@ -35,10 +33,8 @@
35
33
  "rimraf": "^3.0.2",
36
34
  "run-pty": "^4.0.3",
37
35
  "solhint": "^3.3.7",
38
- "ts-node": "^10.7.0",
39
36
  "typechain": "^8.1.1",
40
37
  "typescript": "^4.9.5",
41
38
  "wait-on": "^6.0.1"
42
- },
43
- "dependencies": {}
39
+ }
44
40
  }
@@ -0,0 +1,9 @@
1
+ components/=./src/components
2
+ systems/=./src/systems
3
+ libraries/=./src/libraries
4
+ std-contracts/=node_modules/@latticexyz/std-contracts/src/
5
+ solecs/=node_modules/@latticexyz/solecs/src/
6
+ memmove/=node_modules/memmove/src/
7
+ ds-test/=node_modules/ds-test/src/
8
+ forge-std/=node_modules/forge-std/src/
9
+ @solidstate/=node_modules/@solidstate/
@@ -0,0 +1,2 @@
1
+ packages:
2
+ - packages/*
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "mud-template-react",
3
+ "private": true,
4
+ "scripts": {
5
+ "build": "pnpm recursive run build",
6
+ "dev": "run-pty % pnpm dev:node % pnpm dev:client % pnpm dev:contracts",
7
+ "dev:client": "pnpm --filter 'client' run dev",
8
+ "dev:contracts": "pnpm --filter 'contracts' dev",
9
+ "dev:node": "pnpm --filter 'contracts' devnode"
10
+ },
11
+ "devDependencies": {
12
+ "run-pty": "^4.0.3"
13
+ },
14
+ "engines": {
15
+ "node": "18.x",
16
+ "pnpm": "8.x"
17
+ }
18
+ }
@@ -1,35 +1,24 @@
1
1
  {
2
2
  "name": "client",
3
- "license": "MIT",
4
- "private": true,
5
3
  "version": "0.0.0",
4
+ "private": true,
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "scripts": {
8
+ "build": "vite build",
8
9
  "dev": "vite",
9
- "build": "tsc && vite build",
10
10
  "preview": "vite preview"
11
11
  },
12
- "devDependencies": {
13
- "@types/react": "^18.0.26",
14
- "@types/react-dom": "^18.0.9",
15
- "@typescript-eslint/eslint-plugin": "^5.46.1",
16
- "@typescript-eslint/parser": "^5.46.1",
17
- "@vitejs/plugin-react": "^3.0.0",
18
- "eslint": "^8.29.0",
19
- "eslint-plugin-react": "^7.31.11",
20
- "eslint-plugin-react-hooks": "^4.6.0",
21
- "typescript": "^4.9.5",
22
- "vite": "^3.2.3"
23
- },
24
12
  "dependencies": {
25
13
  "@improbable-eng/grpc-web": "^0.15.0",
26
- "@latticexyz/network": "{{mud-version}}",
27
- "@latticexyz/react": "{{mud-version}}",
28
- "@latticexyz/recs": "{{mud-version}}",
29
- "@latticexyz/services": "{{mud-version}}",
30
- "@latticexyz/std-client": "{{mud-version}}",
31
- "@latticexyz/utils": "{{mud-version}}",
14
+ "@latticexyz/network": "link:../../../../packages/network",
15
+ "@latticexyz/react": "link:../../../../packages/react",
16
+ "@latticexyz/recs": "link:../../../../packages/recs",
17
+ "@latticexyz/services": "link:../../../../packages/services",
18
+ "@latticexyz/std-client": "link:../../../../packages/std-client",
19
+ "@latticexyz/utils": "link:../../../../packages/utils",
32
20
  "async-mutex": "^0.4.0",
21
+ "contracts": "workspace:*",
33
22
  "ethers": "^5.7.2",
34
23
  "mobx": "^6.7.0",
35
24
  "nice-grpc": "^2.0.1",
@@ -38,5 +27,17 @@
38
27
  "react": "^18.2.0",
39
28
  "react-dom": "^18.2.0",
40
29
  "threads": "^1.7.0"
30
+ },
31
+ "devDependencies": {
32
+ "@types/react": "^18.0.26",
33
+ "@types/react-dom": "^18.0.9",
34
+ "@typescript-eslint/eslint-plugin": "^5.46.1",
35
+ "@typescript-eslint/parser": "^5.46.1",
36
+ "@vitejs/plugin-react": "^3.0.0",
37
+ "eslint": "^8.29.0",
38
+ "eslint-plugin-react": "^7.31.11",
39
+ "eslint-plugin-react-hooks": "^4.6.0",
40
+ "typescript": "^4.9.5",
41
+ "vite": "^4.2.1"
41
42
  }
42
43
  }
@@ -0,0 +1,12 @@
1
+ import { defineConfig } from "vite";
2
+ import react from "@vitejs/plugin-react";
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ server: {
7
+ port: 3000,
8
+ fs: {
9
+ strict: false,
10
+ },
11
+ },
12
+ });
@@ -1,4 +1,5 @@
1
1
  {
2
+ "plugins": ["prettier-plugin-solidity"],
2
3
  "printWidth": 120,
3
4
  "semi": true,
4
5
  "tabWidth": 2,
@@ -5,7 +5,7 @@ fuzz_runs = 256
5
5
  optimizer = true
6
6
  optimizer_runs = 3000
7
7
  verbosity = 1
8
- libs = ["../../node_modules", "../../../mud"]
9
8
  src = "src"
10
9
  test = "src/test"
11
10
  out = "out"
11
+ allow_paths = ["../../node_modules", "../../../../packages"]
@@ -1,33 +1,31 @@
1
1
  {
2
2
  "name": "contracts",
3
- "license": "MIT",
4
3
  "version": "0.0.0",
5
4
  "private": true,
5
+ "license": "MIT",
6
6
  "scripts": {
7
- "----- EXTERNAL -----": "---------------------------",
8
- "prepare": "mud types",
9
- "devnode": "mud devnode",
10
- "test": "mud test",
11
- "types": "mud types",
12
- "dev": "mud deploy-contracts --dev --watch --openUrl http://localhost:3000?dev=true",
7
+ "build": "mud types",
13
8
  "deploy": "mud deploy-contracts",
14
- "lint": "yarn prettier && yarn solhint",
15
- "----- INTERNAL -----": "---------------------------",
9
+ "dev": "mud deploy-contracts --dev --watch --openUrl http://localhost:3000?dev=true",
10
+ "devnode": "mud devnode",
11
+ "lint": "prettier && solhint",
16
12
  "prettier": "prettier --write 'src/**/*.sol'",
17
- "solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix"
13
+ "solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
14
+ "test": "mud test",
15
+ "types": "mud types"
18
16
  },
19
17
  "devDependencies": {
20
18
  "@ethersproject/abi": "^5.7.0",
21
19
  "@ethersproject/bytes": "^5.7.0",
22
- "@ethersproject/providers": "^5.7.0",
23
- "@latticexyz/cli": "{{mud-version}}",
24
- "@latticexyz/solecs": "{{mud-version}}",
25
- "@latticexyz/std-contracts": "{{mud-version}}",
20
+ "@ethersproject/providers": "^5.7.2",
21
+ "@latticexyz/cli": "link:../../../../packages/cli",
22
+ "@latticexyz/solecs": "link:../../../../packages/solecs",
23
+ "@latticexyz/std-contracts": "link:../../../../packages/std-contracts",
26
24
  "@solidstate/contracts": "^0.0.52",
27
- "@typechain/ethers-v5": "^10.1.1",
25
+ "@typechain/ethers-v5": "^10.2.0",
28
26
  "@types/node": "^18.11.9",
29
27
  "ds-test": "https://github.com/dapphub/ds-test.git#c9ce3f25bde29fc5eb9901842bf02850dfd2d084",
30
- "ethers": "^5.7.1",
28
+ "ethers": "^5.7.2",
31
29
  "forge-std": "https://github.com/foundry-rs/forge-std.git#b4f121555729b3afb3c5ffccb62ff4b6e2818fd3",
32
30
  "memmove": "https://github.com/brockelmore/memmove.git#ffd71cd77b1708574ef46a667b23ca3a5cc9fa27",
33
31
  "prettier": "^2.8.4",
@@ -35,10 +33,8 @@
35
33
  "rimraf": "^3.0.2",
36
34
  "run-pty": "^4.0.3",
37
35
  "solhint": "^3.3.7",
38
- "ts-node": "^10.7.0",
39
36
  "typechain": "^8.1.1",
40
37
  "typescript": "^4.9.5",
41
38
  "wait-on": "^6.0.1"
42
- },
43
- "dependencies": {}
39
+ }
44
40
  }
@@ -0,0 +1,9 @@
1
+ components/=./src/components
2
+ systems/=./src/systems
3
+ libraries/=./src/libraries
4
+ std-contracts/=node_modules/@latticexyz/std-contracts/src/
5
+ solecs/=node_modules/@latticexyz/solecs/src/
6
+ memmove/=node_modules/memmove/src/
7
+ ds-test/=node_modules/ds-test/src/
8
+ forge-std/=node_modules/forge-std/src/
9
+ @solidstate/=node_modules/@solidstate/
@@ -0,0 +1,2 @@
1
+ packages:
2
+ - packages/*
package/package.json CHANGED
@@ -1,29 +1,28 @@
1
1
  {
2
2
  "name": "create-mud",
3
+ "version": "2.0.0-alpha.8+fbe2c897",
3
4
  "description": "Create a new MUD project",
4
- "version": "2.0.0-alpha.78+cf5f4bfe",
5
- "author": "Lattice <mud@lattice.xyz>",
6
5
  "license": "MIT",
6
+ "author": "Lattice <mud@lattice.xyz>",
7
7
  "bin": "dist/cli.js",
8
8
  "files": [
9
- "dist",
10
- "templates"
9
+ "dist"
11
10
  ],
12
11
  "scripts": {
13
- "prepare": "yarn build",
14
- "build": "tsup src/cli.ts --minify",
15
- "clean": "shx rm -rf lib",
12
+ "build": "tsup src/cli.ts --minify && ./scripts/copy-templates.sh",
13
+ "clean": "rimraf dist",
16
14
  "dev": "tsup src/cli.ts --watch",
17
15
  "prepublishOnly": "npm run clean && npm run build",
18
- "test": "echo \"TODO\"",
19
- "release": "npm publish --access=public"
16
+ "release": "npm publish --access=public",
17
+ "test": "pnpm test:minimal && pnpm test:react",
18
+ "test:minimal": "dist/cli.js test-project --template minimal && rimraf test-project",
19
+ "test:react": "dist/cli.js test-project --template react && rimraf test-project"
20
20
  },
21
21
  "dependencies": {
22
- "create-create-app": "git+https://github.com/holic/create-create-app#e5c8bb449033418ad8518fc73f72c1a07eab2577"
22
+ "create-create-app": "git+https://github.com/holic/create-create-app#74376c59b48a04aabbe94d9cacfe9cb1cecccd63"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^17.0.29",
26
- "shx": "^0.3.4",
27
26
  "tsup": "^5.12.1",
28
27
  "typescript": "^4.9.5"
29
28
  },
@@ -31,5 +30,5 @@
31
30
  "access": "public",
32
31
  "registry": "https://registry.npmjs.org"
33
32
  },
34
- "gitHead": "cf5f4bfe0d1d14e70efbf10ebef47d39f39e7239"
33
+ "gitHead": "fbe2c897aaf2e88c02ce9031c06dae4560c3cf69"
35
34
  }
@@ -1,17 +0,0 @@
1
- {
2
- "private": true,
3
- "name": "{{kebab name}}",
4
- "workspaces": [
5
- "packages/*"
6
- ],
7
- "scripts": {
8
- "prepare": "yarn workspace contracts prepare",
9
- "dev": "run-pty % yarn dev:node % yarn dev:client % yarn dev:contracts",
10
- "dev:client": "yarn workspace client run dev",
11
- "dev:node": "yarn workspace contracts run devnode",
12
- "dev:contracts": "yarn workspace contracts run dev"
13
- },
14
- "devDependencies": {
15
- "run-pty": "^4.0.3"
16
- }
17
- }
@@ -1,29 +0,0 @@
1
- import { defineConfig } from "vite";
2
- export default defineConfig({
3
- server: {
4
- port: 3000,
5
- fs: {
6
- strict: false,
7
- },
8
- },
9
- optimizeDeps: {
10
- esbuildOptions: {
11
- target: "es2020",
12
- },
13
- exclude: ["@latticexyz/network"],
14
- include: [
15
- "proxy-deep",
16
- "ethers/lib/utils",
17
- "bn.js",
18
- "js-sha3",
19
- "hash.js",
20
- "bech32",
21
- "long",
22
- "protobufjs/minimal",
23
- "debug",
24
- "is-observable",
25
- "nice-grpc-web",
26
- "@improbable-eng/grpc-web",
27
- ],
28
- },
29
- });
@@ -1,8 +0,0 @@
1
- components/=./src/components
2
- systems/=./src/systems
3
- libraries/=./src/libraries
4
- std-contracts/=../../node_modules/@latticexyz/std-contracts/src/
5
- solecs/=../../node_modules/@latticexyz/solecs/src/
6
- memmove/=../../node_modules/memmove/src/
7
- ds-test/=../../node_modules/ds-test/src/
8
- forge-std/=../../node_modules/forge-std/src/
@@ -1,17 +0,0 @@
1
- {
2
- "private": true,
3
- "name": "{{kebab name}}",
4
- "workspaces": [
5
- "packages/*"
6
- ],
7
- "scripts": {
8
- "prepare": "yarn workspace contracts prepare",
9
- "dev": "run-pty % yarn dev:node % yarn dev:client % yarn dev:contracts",
10
- "dev:client": "yarn workspace client run dev",
11
- "dev:node": "yarn workspace contracts run devnode",
12
- "dev:contracts": "yarn workspace contracts run dev"
13
- },
14
- "devDependencies": {
15
- "run-pty": "^4.0.3"
16
- }
17
- }
@@ -1,32 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import react from "@vitejs/plugin-react";
3
-
4
- export default defineConfig({
5
- plugins: [react()],
6
- server: {
7
- port: 3000,
8
- fs: {
9
- strict: false,
10
- },
11
- },
12
- optimizeDeps: {
13
- esbuildOptions: {
14
- target: "es2020",
15
- },
16
- exclude: ["@latticexyz/network"],
17
- include: [
18
- "proxy-deep",
19
- "ethers/lib/utils",
20
- "bn.js",
21
- "js-sha3",
22
- "hash.js",
23
- "bech32",
24
- "long",
25
- "protobufjs/minimal",
26
- "debug",
27
- "is-observable",
28
- "nice-grpc-web",
29
- "@improbable-eng/grpc-web",
30
- ],
31
- },
32
- });
@@ -1,8 +0,0 @@
1
- components/=./src/components
2
- systems/=./src/systems
3
- libraries/=./src/libraries
4
- std-contracts/=../../node_modules/@latticexyz/std-contracts/src/
5
- solecs/=../../node_modules/@latticexyz/solecs/src/
6
- memmove/=../../node_modules/memmove/src/
7
- ds-test/=../../node_modules/ds-test/src/
8
- forge-std/=../../node_modules/forge-std/src/
File without changes