mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Split client into frontend website and server
This commit is contained in:
10
frontend/server/scripts/build-release.bat
Normal file
10
frontend/server/scripts/build-release.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
echo D|xcopy /Y /S /E .\bin ..\..\build\frontend\bin
|
||||
echo D|xcopy /Y /S /E .\public ..\..\build\frontend\public
|
||||
echo D|xcopy /Y /S /E .\routes ..\..\build\frontend\routes
|
||||
echo D|xcopy /Y /S /E .\views ..\..\build\frontend\views
|
||||
|
||||
echo F|xcopy /Y .\app.js ..\..\build\frontend\app.js
|
||||
echo F|xcopy /Y .\client.js ..\..\build\frontend\client.js
|
||||
echo F|xcopy /Y .\package.json ..\..\build\frontend\package.json
|
||||
|
||||
echo F|xcopy /Y /I .\*.vbs ..\..\build\frontend
|
||||
5
frontend/server/scripts/copy.bat
Normal file
5
frontend/server/scripts/copy.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
echo F|xcopy /Y ..\website\node_modules\leaflet\dist\leaflet.css .\public\stylesheets\leaflet\leaflet.css
|
||||
echo F|xcopy /Y ..\website\node_modules\leaflet-gesture-handling\dist\leaflet-gesture-handling.css .\public\stylesheets\leaflet\leaflet-gesture-handling.css
|
||||
echo F|xcopy /Y ..\website\node_modules\leaflet.nauticscale\dist\leaflet.nauticscale.js .\public\javascripts\leaflet.nauticscale.js
|
||||
echo F|xcopy /Y ..\website\node_modules\leaflet-path-drag\dist\L.Path.Drag.js .\public\javascripts\L.Path.Drag.js
|
||||
|
||||
2
frontend/server/scripts/create-mock-dcs.bat
Normal file
2
frontend/server/scripts/create-mock-dcs.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
echo F|xcopy /Y "..\..\olympus.json" "..\..\mock-dcs\Config\olympus.json"
|
||||
echo D|xcopy /Y /S /E "..\..\databases" "..\..\mock-dcs\Mods\Services\Olympus\databases"
|
||||
3
frontend/server/scripts/demo-server.bat
Normal file
3
frontend/server/scripts/demo-server.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
call ./scripts/copy.bat
|
||||
call ./scripts/create-mock-dcs.bat
|
||||
node ./bin/demo --config %1
|
||||
Reference in New Issue
Block a user