From f9fac66d8b518b344f9251ec02febda2b78d3029 Mon Sep 17 00:00:00 2001 From: Alex Kempen <89172296+AlexKempen@users.noreply.github.com> Date: Fri, 1 Dec 2023 23:46:00 -0600 Subject: [PATCH] Renamed files to kebab-case (#66) * Renamed files to kebab-case * Rename App.tsx to app.tsx --- src/client/{App.tsx => app.tsx} | 2 +- src/server/api/api.ts | 2 +- src/server/command/{movecommand.ts => move-command.ts} | 0 src/server/command/{movepiece.ts => move-piece.ts} | 2 +- src/server/robot/__tests__/robot.test.ts | 2 +- src/server/robot/{piecemanager.ts => piece-manager.ts} | 0 src/server/robot/{robotsocket.ts => robot-socket.ts} | 0 src/server/robot/robot.ts | 2 +- 8 files changed, 5 insertions(+), 5 deletions(-) rename src/client/{App.tsx => app.tsx} (99%) rename src/server/command/{movecommand.ts => move-command.ts} (100%) rename src/server/command/{movepiece.ts => move-piece.ts} (90%) rename src/server/robot/{piecemanager.ts => piece-manager.ts} (100%) rename src/server/robot/{robotsocket.ts => robot-socket.ts} (100%) diff --git a/src/client/App.tsx b/src/client/app.tsx similarity index 99% rename from src/client/App.tsx rename to src/client/app.tsx index 196a965d..70f37c72 100644 --- a/src/client/App.tsx +++ b/src/client/app.tsx @@ -8,4 +8,4 @@ export function App(): JSX.Element { ); -} \ No newline at end of file +} diff --git a/src/server/api/api.ts b/src/server/api/api.ts index 7c5035b7..2a915a81 100644 --- a/src/server/api/api.ts +++ b/src/server/api/api.ts @@ -1,5 +1,5 @@ import { Command } from "../command/command"; -import { PieceManager } from "../robot/piecemanager"; +import { PieceManager } from "../robot/piece-manager"; import { CommandExecutor } from "../command/executor"; import { Chess } from "chess.js"; diff --git a/src/server/command/movecommand.ts b/src/server/command/move-command.ts similarity index 100% rename from src/server/command/movecommand.ts rename to src/server/command/move-command.ts diff --git a/src/server/command/movepiece.ts b/src/server/command/move-piece.ts similarity index 90% rename from src/server/command/movepiece.ts rename to src/server/command/move-piece.ts index 094820b5..6b932d98 100644 --- a/src/server/command/movepiece.ts +++ b/src/server/command/move-piece.ts @@ -6,7 +6,7 @@ import { SequentialCommandGroup, Reversible, } from "./command"; -import { RotateToStartCommand } from "./movecommand"; +import { RotateToStartCommand } from "./move-command"; type ReversibleRobotCommand = RobotCommand & Reversible; diff --git a/src/server/robot/__tests__/robot.test.ts b/src/server/robot/__tests__/robot.test.ts index 91819aee..89dd4790 100644 --- a/src/server/robot/__tests__/robot.test.ts +++ b/src/server/robot/__tests__/robot.test.ts @@ -1,6 +1,6 @@ import { DEGREE } from "../../utils/units"; import { Robot } from "../robot"; -import { RobotSocket } from "../robotsocket"; +import { RobotSocket } from "../robot-socket"; import WebSocket from "ws"; jest.mock("ws"); diff --git a/src/server/robot/piecemanager.ts b/src/server/robot/piece-manager.ts similarity index 100% rename from src/server/robot/piecemanager.ts rename to src/server/robot/piece-manager.ts diff --git a/src/server/robot/robotsocket.ts b/src/server/robot/robot-socket.ts similarity index 100% rename from src/server/robot/robotsocket.ts rename to src/server/robot/robot-socket.ts diff --git a/src/server/robot/robot.ts b/src/server/robot/robot.ts index 68633776..5c9051cc 100644 --- a/src/server/robot/robot.ts +++ b/src/server/robot/robot.ts @@ -1,5 +1,5 @@ import { Position, ZERO_POSITION } from "./pair"; -import { RobotSocket } from "./robotsocket"; +import { RobotSocket } from "./robot-socket"; import { FULL_ROTATION, clampHeading } from "../utils/units"; /**