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.
- package/dist/cli.js +1 -1
- package/dist/templates/minimal/package.json +18 -0
- package/{templates → dist/templates}/minimal/packages/client/package.json +17 -15
- package/dist/templates/minimal/packages/client/vite.config.ts +10 -0
- package/{templates → dist/templates}/minimal/packages/contracts/.prettierrc +1 -0
- package/{templates → dist/templates}/minimal/packages/contracts/foundry.toml +1 -1
- package/{templates → dist/templates}/minimal/packages/contracts/package.json +15 -19
- package/dist/templates/minimal/packages/contracts/remappings.txt +9 -0
- package/dist/templates/minimal/pnpm-workspace.yaml +2 -0
- package/dist/templates/react/package.json +18 -0
- package/{templates → dist/templates}/react/packages/client/package.json +22 -21
- package/dist/templates/react/packages/client/vite.config.ts +12 -0
- package/{templates → dist/templates}/react/packages/contracts/.prettierrc +1 -0
- package/{templates → dist/templates}/react/packages/contracts/foundry.toml +1 -1
- package/{templates → dist/templates}/react/packages/contracts/package.json +15 -19
- package/dist/templates/react/packages/contracts/remappings.txt +9 -0
- package/dist/templates/react/pnpm-workspace.yaml +2 -0
- package/package.json +11 -12
- package/templates/minimal/package.json +0 -17
- package/templates/minimal/packages/client/vite.config.ts +0 -29
- package/templates/minimal/packages/contracts/remappings.txt +0 -8
- package/templates/react/package.json +0 -17
- package/templates/react/packages/client/vite.config.ts +0 -32
- package/templates/react/packages/contracts/remappings.txt +0 -8
- /package/{templates → dist/templates}/minimal/.gitignore +0 -0
- /package/{templates → dist/templates}/minimal/.vscode/settings.json +0 -0
- /package/{templates → dist/templates}/minimal/packages/client/.eslintrc +0 -0
- /package/{templates → dist/templates}/minimal/packages/client/.gitignore +0 -0
- /package/{templates → dist/templates}/minimal/packages/client/index.html +0 -0
- /package/{templates → dist/templates}/minimal/packages/client/src/config.ts +0 -0
- /package/{templates → dist/templates}/minimal/packages/client/src/index.ts +0 -0
- /package/{templates → dist/templates}/minimal/packages/client/tsconfig.json +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/.gitignore +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/.solhint.json +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/chainSpec.json +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/deploy.json +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/exports.sh +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/components/CounterComponent.sol +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/libraries/LibMath.sol +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/systems/IncrementSystem.sol +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/systems/README.md +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/test/Deploy.sol +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/test/Deploy.t.sol +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/src/test/LibDeploy.sol +0 -0
- /package/{templates → dist/templates}/minimal/packages/contracts/tsconfig.json +0 -0
- /package/{templates → dist/templates}/react/.gitignore +0 -0
- /package/{templates → dist/templates}/react/.vscode/settings.json +0 -0
- /package/{templates → dist/templates}/react/packages/client/.eslintrc +0 -0
- /package/{templates → dist/templates}/react/packages/client/.gitignore +0 -0
- /package/{templates → dist/templates}/react/packages/client/index.html +0 -0
- /package/{templates → dist/templates}/react/packages/client/src/App.tsx +0 -0
- /package/{templates → dist/templates}/react/packages/client/src/config.ts +0 -0
- /package/{templates → dist/templates}/react/packages/client/src/index.tsx +0 -0
- /package/{templates → dist/templates}/react/packages/client/tsconfig.json +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/.gitignore +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/.solhint.json +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/chainSpec.json +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/deploy.json +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/exports.sh +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/components/CounterComponent.sol +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/libraries/LibMath.sol +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/systems/IncrementSystem.sol +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/systems/README.md +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/test/Deploy.sol +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/test/Deploy.t.sol +0 -0
- /package/{templates → dist/templates}/react/packages/contracts/src/test/LibDeploy.sol +0 -0
- /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"),
|
|
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": "
|
|
22
|
-
"@latticexyz/
|
|
23
|
-
"@latticexyz/
|
|
24
|
-
"@latticexyz/
|
|
25
|
-
"@latticexyz/
|
|
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
|
}
|
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
15
|
-
"
|
|
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.
|
|
23
|
-
"@latticexyz/cli": "
|
|
24
|
-
"@latticexyz/solecs": "
|
|
25
|
-
"@latticexyz/std-contracts": "
|
|
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.
|
|
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.
|
|
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,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": "
|
|
27
|
-
"@latticexyz/react": "
|
|
28
|
-
"@latticexyz/recs": "
|
|
29
|
-
"@latticexyz/services": "
|
|
30
|
-
"@latticexyz/std-client": "
|
|
31
|
-
"@latticexyz/utils": "
|
|
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
|
}
|
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
15
|
-
"
|
|
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.
|
|
23
|
-
"@latticexyz/cli": "
|
|
24
|
-
"@latticexyz/solecs": "
|
|
25
|
-
"@latticexyz/std-contracts": "
|
|
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.
|
|
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.
|
|
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/
|
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
|
-
"
|
|
14
|
-
"
|
|
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
|
-
"
|
|
19
|
-
"
|
|
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#
|
|
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": "
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{templates → dist/templates}/minimal/packages/contracts/src/components/CounterComponent.sol
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates → dist/templates}/minimal/packages/contracts/src/systems/IncrementSystem.sol
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{templates → dist/templates}/react/packages/contracts/src/components/CounterComponent.sol
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates → dist/templates}/react/packages/contracts/src/systems/IncrementSystem.sol
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|