Refactoring of building scripts

This commit is contained in:
Pax1601
2024-01-03 17:48:38 +01:00
parent 8024db9579
commit 4e7c8ef856
92 changed files with 17403 additions and 284876 deletions

View File

@@ -0,0 +1,4 @@
cd scripts
call copy.bat
cd ..
call browserify ./src/index.ts --debug -o ./public/javascripts/bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ]

View File

@@ -0,0 +1,15 @@
cd scripts
call copy.bat
cd ..
call browserify ./src/index.ts -o ./public/javascripts/bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ]
echo D|xcopy /Y /S /E .\bin ..\build\client\bin
echo D|xcopy /Y /S /E .\public ..\build\client\public
echo D|xcopy /Y /S /E .\routes ..\build\client\routes
echo D|xcopy /Y /S /E .\views ..\build\client\views
echo F|xcopy /Y .\app.js ..\build\client\app.js
echo F|xcopy /Y .\client.js ..\build\client\client.js
echo F|xcopy /Y .\package.json ..\build\client\package.json
echo F|xcopy /Y /I .\*.vbs ..\build\client

6
client/scripts/copy.bat Normal file
View File

@@ -0,0 +1,6 @@
cd ..
echo F|xcopy /Y .\node_modules\leaflet\dist\leaflet.css .\public\stylesheets\leaflet\leaflet.css
echo F|xcopy /Y .\node_modules\leaflet-gesture-handling\dist\leaflet-gesture-handling.css .\public\stylesheets\leaflet\leaflet-gesture-handling.css
echo F|xcopy /Y .\node_modules\leaflet.nauticscale\dist\leaflet.nauticscale.js .\public\javascripts\leaflet.nauticscale.js
echo F|xcopy /Y .\node_modules\leaflet-path-drag\dist\L.Path.Drag.js .\public\javascripts\L.Path.Drag.js
cd scripts

View File

@@ -0,0 +1 @@
concurrently --kill-others "call ./scripts/demo.bat" "npm run watch" "nodemon --ignore ./public/databases/ ./bin/www -- --config ../moc_dcs/Config/olympus.json"

1
client/scripts/debug.bat Normal file
View File

@@ -0,0 +1 @@
concurrently --kill-others "npm run watch" "nodemon --ignore ./public/databases/ ./bin/www -- --config ../moc_dcs/Config/olympus.json"

1
client/scripts/demo.bat Normal file
View File

@@ -0,0 +1 @@
node .\bin\demo

View File

@@ -0,0 +1 @@
tsc --project tsconfig.json --declaration --emitDeclarationOnly --outfile ./@types/olympus/index.d.ts

1
client/scripts/watch.bat Normal file
View File

@@ -0,0 +1 @@
watchify ./src/index.ts --debug -o ./public/javascripts/bundle.js -t [ babelify --global true --presets [ @babel/preset-env ] --extensions '.js'] -p [ tsify --noImplicitAny ]