Skip to content

Commit

Permalink
Merge pull request dojoengine#159 from LidamaoHub/main
Browse files Browse the repository at this point in the history
Update: add vue templates
  • Loading branch information
ponderingdemocritus authored Mar 11, 2024
2 parents d157d45 + 67da493 commit 858eb6c
Show file tree
Hide file tree
Showing 28 changed files with 2,907 additions and 52 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
docs
docs

.DS_Store
Binary file renamed .DS_Store → examples/vue/.DS_Store
Binary file not shown.
19 changes: 19 additions & 0 deletions examples/vue/vue-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Dojo.js Vue Template Library

### Introduction

Dojo.js Vue Template Library is a Vue.js component library for quickly building Dojo.js applications. It provides a set of out-of-the-box components that help you quickly build complex Dojo.js applications.

### Installation

Make sure you have a ../../dojo-starter folder.

Install the dependencies in the project root directory by running the following command:

```pnpm i```

### Start the project

Start the project by running the following command:

```pnpm dev```
6 changes: 6 additions & 0 deletions examples/vue/vue-app/dojoConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import manifest from "../../dojo-starter/target/dev/manifest.json";
import { createDojoConfig } from "@dojoengine/core";

export const dojoConfig = createDojoConfig({
manifest,
});
13 changes: 13 additions & 0 deletions examples/vue/vue-app/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions examples/vue/vue-app/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "vue-app",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"create-components": "npx @dojoengine/core ../../dojo-starter/target/dev/manifest.json src/dojo/generated/contractComponents.ts http://localhost:5050 0x28f5999ae62fec17c09c52a800e244961dba05251f5aaf923afabd9c9804d1a"
},
"dependencies": {
"@dojoengine/core": "0.5.9",
"@dojoengine/recs": "0.1.35",
"@dojoengine/state": "0.5.9",
"@dojoengine/torii-client": "0.5.9",
"@dojoengine/utils": "0.5.9",
"@latticexyz/utils": "^1.43.0",
"starknet": "^5.24.3",
"vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.3.0",
"vue": "^3.4.19"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"typescript": "^5.2.2",
"vite": "^5.1.4",
"vue-tsc": "^2.0.4"
}
}
Loading

0 comments on commit 858eb6c

Please sign in to comment.