1
0
mirror of https://github.com/thib8956/tic-tac-toe-ws.git synced 2024-09-29 06:06:37 +00:00

rename mts to ts

This commit is contained in:
Thibaud Gasser 2024-09-25 20:21:02 +02:00
parent 3a33868a02
commit cc1fd59b79
6 changed files with 5 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
node_modules/ node_modules/
*.mjs *.js

View File

@ -1,4 +1,4 @@
import { Request, Response, Message, Hello, EndGame } from "common.mjs"; import { Request, Response, Message, Hello, EndGame } from "common.js";
const CELL_SIZE = 150; const CELL_SIZE = 150;
const GRID_SIZE = CELL_SIZE * 3; const GRID_SIZE = CELL_SIZE * 3;

View File

@ -6,5 +6,5 @@
<body style="margin: 0; padding 0; overflow: hidden; background-color: #000000"> <body style="margin: 0; padding 0; overflow: hidden; background-color: #000000">
<canvas id="game" width="800" height="600"></canvas> <canvas id="game" width="800" height="600"></canvas>
</body> </body>
<script type="module" src="client.mjs"></script> <script type="module" src="client.js"></script>
</html> </html>

View File

@ -3,6 +3,7 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"type": "module",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },

View File

@ -1,4 +1,4 @@
import { Message, Response, Hello, EndGame } from "common.mjs" import { Message, Response, Hello, EndGame } from "common.js"
import { WebSocket, WebSocketServer, MessageEvent } from "ws"; import { WebSocket, WebSocketServer, MessageEvent } from "ws";
const port = 1234 const port = 1234