Adding Helpers

This commit is contained in:
Martin Karkowski 2020-08-25 11:03:16 +02:00
parent 3704951dec
commit 3430a33cc2
5 changed files with 45 additions and 0 deletions

3
00-install.bat Normal file
View File

@ -0,0 +1,3 @@
set DIR=%~dp0
cd "%DIR%"
npm install

30
01-compile.bat Normal file
View File

@ -0,0 +1,30 @@
@echo off
set DIR=%~dp0
cd "%DIR%"
SETLOCAL
echo Compiling Backend
(npx tsc -p ./tsconfigBackend.json --noEmit --pretty) && (
echo Generating API-Interface
@echo on
node ./dist/lib/cli/generateFiles
echo Generating API-Interface
@echo off
echo Compiling FrontendFiles
(npx tsc -p ./tsconfigBackend.json --noEmit --pretty) && (
echo Done
) || (
echo Done
)
) || (
echo Generating API-Interface
@echo on
node ./dist/lib/cli/generateFiles
echo Generating API-Interface
@echo off
echo Compiling FrontendFiles
(npx tsc -p ./tsconfigBackend.json --noEmit --pretty) && (
echo Done
) || (
echo Done
)
)

2
02-compile - ui.bat Normal file
View File

@ -0,0 +1,2 @@
@echo off
npx next build

5
03-start-dev.bat Normal file
View File

@ -0,0 +1,5 @@
set DIR=%~dp0
cd "%DIR%"
start "" node ./dist/src/index
start "" npx next dev

5
03-start-production.bat Normal file
View File

@ -0,0 +1,5 @@
set DIR=%~dp0
cd "%DIR%"
start "" node ./dist/src/index
start "" npx next start