Skip to content

Commit ee1769b

Browse files
committed
use new @webxcd/vite-plugins package
1 parent 3468537 commit ee1769b

File tree

5 files changed

+10
-111
lines changed

5 files changed

+10
-111
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022
3+
Copyright (c) 2024
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

css/main.css

Lines changed: 0 additions & 37 deletions
This file was deleted.

index.html

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,11 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<link rel="stylesheet" href="./css/main.css" />
7-
86
<script src="webxdc.js"></script>
97
</head>
108
<body>
11-
<h1>Chat</h1>
12-
<form>
13-
<input
14-
id="input"
15-
type="text"
16-
autocomplete="off"
17-
placeholder="Message"
18-
autofocus
19-
/>
20-
<input
21-
class="btn"
22-
type="submit"
23-
onclick="sendMsg(); return false;"
24-
value="Send"
25-
/>
26-
</form>
27-
<p id="chat-area"></p>
28-
<p>
29-
<em><small id="deviceName"></small></em>
30-
</p>
31-
<script src="./js/main.js" type="module"></script>
9+
<script type="module">
10+
window.webxdc.sendUpdate({payload: "hello world!"}, "");
11+
</script>
3212
</body>
3313
</html>

js/main.js

Lines changed: 0 additions & 45 deletions
This file was deleted.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"private": true,
3+
"type": "module",
34
"scripts": {
45
"start": "vite --port 3000",
56
"emulator": "concurrently \"npm start\" \"webxdc-dev run http://localhost:3000\"",
@@ -8,10 +9,10 @@
89
"build": "vite build"
910
},
1011
"devDependencies": {
11-
"concurrently": "^8.2.2",
12-
"prettier": "^3.3.2",
13-
"vite": "^4.5.3",
14-
"webxdc-dev": "^0.17.0",
15-
"webxdc-vite-plugins": "github:webxdc/webxdc-vite-plugins"
12+
"concurrently": "latest",
13+
"prettier": "latest",
14+
"vite": "latest",
15+
"webxdc-dev": "latest",
16+
"@webxdc/vite-plugins": "latest"
1617
}
1718
}

0 commit comments

Comments
 (0)