diff --git a/package.json b/package.json index e59b499..72d1801 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "start": "webpack serve", + "dev": "ts-node ./src/Robotics/main.ts", + "vision": "webpack serve", + "build": "webpack", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", diff --git a/src/Server/Entities/EventManager.ts b/src/Robotics/Entities/EventManager.ts similarity index 100% rename from src/Server/Entities/EventManager.ts rename to src/Robotics/Entities/EventManager.ts diff --git a/src/Server/Entities/Motor.ts b/src/Robotics/Entities/Motor.ts similarity index 100% rename from src/Server/Entities/Motor.ts rename to src/Robotics/Entities/Motor.ts diff --git a/src/Server/Entities/MotorMover.ts b/src/Robotics/Entities/MotorMover.ts similarity index 96% rename from src/Server/Entities/MotorMover.ts rename to src/Robotics/Entities/MotorMover.ts index dc337c8..7efe126 100644 --- a/src/Server/Entities/MotorMover.ts +++ b/src/Robotics/Entities/MotorMover.ts @@ -22,7 +22,7 @@ class MotorMover implements IMotorMover { this.moveProcess = null const motorProcessArguments = [ - 'src/Server/moveStepper.py', + 'src/Robotics/moveStepper.py', this.motor.pinOne.toString(), this.motor.pinTwo.toString(), this.motor.pinThree.toString(), @@ -43,7 +43,7 @@ class MotorMover implements IMotorMover { this.moveProcess = null const motorProcessArguments = [ - 'src/Server/moveStepper.py', + 'src/Robotics/moveStepper.py', this.motor.pinOne.toString(), this.motor.pinTwo.toString(), this.motor.pinThree.toString(), diff --git a/src/Server/Entities/Server.ts b/src/Robotics/Entities/Server.ts similarity index 97% rename from src/Server/Entities/Server.ts rename to src/Robotics/Entities/Server.ts index 5cf419a..c3c7817 100644 --- a/src/Server/Entities/Server.ts +++ b/src/Robotics/Entities/Server.ts @@ -4,7 +4,7 @@ import bodyParser from 'body-parser' import http from 'http' import { Socket } from 'socket.io' import IEventManager from '../Interfaces/IEventManager' -import EventManager from '../Entities/EventManager' +import EventManager from './EventManager' class Server { public app = express() diff --git a/src/Server/Interfaces/IEventManager.ts b/src/Robotics/Interfaces/IEventManager.ts similarity index 100% rename from src/Server/Interfaces/IEventManager.ts rename to src/Robotics/Interfaces/IEventManager.ts diff --git a/src/Server/Interfaces/IMotor.ts b/src/Robotics/Interfaces/IMotor.ts similarity index 100% rename from src/Server/Interfaces/IMotor.ts rename to src/Robotics/Interfaces/IMotor.ts diff --git a/src/Server/Interfaces/IMotorMover.ts b/src/Robotics/Interfaces/IMotorMover.ts similarity index 100% rename from src/Server/Interfaces/IMotorMover.ts rename to src/Robotics/Interfaces/IMotorMover.ts diff --git a/src/Server/Interfaces/IMotorMoverConstructor.ts b/src/Robotics/Interfaces/IMotorMoverConstructor.ts similarity index 100% rename from src/Server/Interfaces/IMotorMoverConstructor.ts rename to src/Robotics/Interfaces/IMotorMoverConstructor.ts diff --git a/src/Server/Interfaces/IServer.ts b/src/Robotics/Interfaces/IServer.ts similarity index 100% rename from src/Server/Interfaces/IServer.ts rename to src/Robotics/Interfaces/IServer.ts diff --git a/src/Server/UseCases/Factories/makeEventManager.ts b/src/Robotics/UseCases/Factories/makeEventManager.ts similarity index 100% rename from src/Server/UseCases/Factories/makeEventManager.ts rename to src/Robotics/UseCases/Factories/makeEventManager.ts diff --git a/src/Server/UseCases/Factories/makeMotor.ts b/src/Robotics/UseCases/Factories/makeMotor.ts similarity index 100% rename from src/Server/UseCases/Factories/makeMotor.ts rename to src/Robotics/UseCases/Factories/makeMotor.ts diff --git a/src/Server/UseCases/Factories/makeMotorMover.ts b/src/Robotics/UseCases/Factories/makeMotorMover.ts similarity index 100% rename from src/Server/UseCases/Factories/makeMotorMover.ts rename to src/Robotics/UseCases/Factories/makeMotorMover.ts diff --git a/src/Server/UseCases/Factories/makeServer.ts b/src/Robotics/UseCases/Factories/makeServer.ts similarity index 100% rename from src/Server/UseCases/Factories/makeServer.ts rename to src/Robotics/UseCases/Factories/makeServer.ts diff --git a/src/Server/main.ts b/src/Robotics/main.ts similarity index 100% rename from src/Server/main.ts rename to src/Robotics/main.ts diff --git a/src/Server/moveStepper.py b/src/Robotics/moveStepper.py similarity index 100% rename from src/Server/moveStepper.py rename to src/Robotics/moveStepper.py