Skip to content

Commit

Permalink
v0.1.55
Browse files Browse the repository at this point in the history
  • Loading branch information
notV4l committed Nov 24, 2023
1 parent fb5ccd4 commit d701b54
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/core",
"version": "0.1.54",
"version": "0.1.55",
"description": "Dojo engine core providers and types",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-burner/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/create-burner",
"version": "0.1.54",
"version": "0.1.55",
"description": "Useful hooks and functions to create a Starknet burner wallet",
"source": "src/index.ts",
"main": "dist/index.js",
Expand Down
3 changes: 3 additions & 0 deletions packages/create-dojo/bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/create-dojo/bin/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/create-dojo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/create-dojo",
"version": "0.1.54",
"version": "0.1.55",
"description": "Scaffold Dojo project from examples",
"module": "index.ts",
"main" : "./bin/index.js",
Expand Down
5 changes: 5 additions & 0 deletions packages/create-dojo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ async function run() {
const { template, projectName } = await prompt();

// clone template using degit into projectName directory
console.log(`Downloading ${template}...`)
spawn.sync("npx", ["degit", `dojoengine/dojo.js/examples/${template}`, `${projectName}`])

// rewrite package.json
await rewritePackageJson(projectName);

// clone dojo-starter
console.log(`Downloading dojo-starter...`)
spawn.sync("npx", ["degit", `dojoengine/dojo-starter`, `dojo-starter`])

} catch (e: any) {
console.log(e)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/react",
"version": "0.1.54",
"version": "0.1.55",
"description": "Useful React hooks for Starknet",
"source": "src/index.ts",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/torii-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/torii-client",
"version": "0.1.54",
"version": "0.1.55",
"description": "",
"main": "dist/index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/torii-wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/torii-wasm",
"version": "0.1.54",
"version": "0.1.55",
"description": "",
"main": "./pkg/torii_client_wasm.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dojoengine/utils",
"version": "0.1.54",
"version": "0.1.55",
"description": "Helpful Dojo Utils",
"type": "module",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ To scaffold a new project from an example:
npx @dojoengine/create-dojo
```

If you have issues on WSL, install package first then run command :

```console
npm i @dojoengine/create-dojo -g
npx @dojoengine/create-dojo
```

To run the examples that have the linked packages, follow the steps below:

**Terminal 1**: Start the React app.
Expand Down

0 comments on commit d701b54

Please sign in to comment.