Skip to content

Commit

Permalink
feat: update example to use vite and typescript
Browse files Browse the repository at this point in the history
chore: update deps
  • Loading branch information
ahkohd committed Jan 5, 2024
1 parent 80550ad commit 548f59d
Show file tree
Hide file tree
Showing 12 changed files with 702 additions and 159 deletions.
14 changes: 14 additions & 0 deletions examples/vanilla/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<html>
<body>
<div>
<h1>tauri-awesome-rpc</h1>

<h5>invoke test</h5>
<div id="response"></div>

<h5>AwesomeEvent.listen test</h5>
<div id="time_elapsed"></div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
12 changes: 8 additions & 4 deletions examples/vanilla/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
{
"name": "app",
"version": "1.0.0",
"type": "module",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "cross-env RUST_DEBUG=1 NODE_TLS_REJECT_UNAUTHORIZED=0 tauri dev"
"dev": "vite",
"tauri": "tauri",
"build": "vite build"
},
"author": "",
"license": "MIT",
"dependencies": {
"@tauri-apps/cli": "^1.0.0-beta.10"
"@tauri-apps/api": "^1.5.3",
"@tauri-apps/cli": "^1.5.9"
},
"devDependencies": {
"cross-env": "^7.0.3"
"@types/node": "^20.10.6",
"vite": "^5.0.11"
}
}
Loading

0 comments on commit 548f59d

Please sign in to comment.