From 0a48f2b2d735de604a1604fd0e191212b355602f Mon Sep 17 00:00:00 2001 From: Jeff Durnwald Date: Tue, 12 Apr 2022 10:31:24 -0400 Subject: [PATCH] Moved ui folder --- README.md | 2 +- package.json | 2 +- rollup.config.js | 2 +- src/{ => ui}/http/start.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/{ => ui}/http/start.ts (93%) diff --git a/README.md b/README.md index 0a2d9210..25fe1023 100644 --- a/README.md +++ b/README.md @@ -242,7 +242,7 @@ The syntax is similar to the charging station configuration template 'Configurat To start the program, run: `npm start`. To start the program with a UI controller, run: `npm start:server`. -Then, start/stop the simulator connections by going to `https://` in a browser. +Then, start/stop the simulator connections by going to `https://` in a browser. Localhost port will default to 8080. For BTP, the port is assigned based on the process.env.PORT environment variable. ## Docker diff --git a/package.json b/package.json index 37f0a767..aa7ea289 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "prepare": "node prepare.js", "prestart": "npm run build", "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.js", - "start:server": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/http/start.js", + "start:server": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/ui/http/start.js", "start:debug": "cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.js", "start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.js", "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.js", diff --git a/rollup.config.js b/rollup.config.js index ae0e0d90..67435bc7 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -9,7 +9,7 @@ import ts from 'rollup-plugin-ts'; const isDevelopmentBuild = process.env.BUILD === 'development'; export default { - input: ['src/start.ts', 'src/http/start.ts', 'src/charging-station/ChargingStationWorker.ts'], + input: ['src/start.ts', 'src/ui/http/start.ts', 'src/charging-station/ChargingStationWorker.ts'], output: { dir: 'dist', format: 'cjs', diff --git a/src/http/start.ts b/src/ui/http/start.ts similarity index 93% rename from src/http/start.ts rename to src/ui/http/start.ts index 7afdd281..27b7fcb9 100644 --- a/src/http/start.ts +++ b/src/ui/http/start.ts @@ -1,4 +1,4 @@ -import Bootstrap from '../charging-station/Bootstrap'; +import Bootstrap from '../../charging-station/Bootstrap'; import express from 'express'; const app = express(); -- 2.34.1