mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Refactoring of building scripts
This commit is contained in:
4
client/scripts/build-debug.bat
Normal file
4
client/scripts/build-debug.bat
Normal 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 ]
|
||||
15
client/scripts/build-release.bat
Normal file
15
client/scripts/build-release.bat
Normal 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
6
client/scripts/copy.bat
Normal 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
|
||||
1
client/scripts/debug-nodcs.bat
Normal file
1
client/scripts/debug-nodcs.bat
Normal 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
1
client/scripts/debug.bat
Normal 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
1
client/scripts/demo.bat
Normal file
@@ -0,0 +1 @@
|
||||
node .\bin\demo
|
||||
1
client/scripts/emit-declarations.bat
Normal file
1
client/scripts/emit-declarations.bat
Normal file
@@ -0,0 +1 @@
|
||||
tsc --project tsconfig.json --declaration --emitDeclarationOnly --outfile ./@types/olympus/index.d.ts
|
||||
1
client/scripts/watch.bat
Normal file
1
client/scripts/watch.bat
Normal 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 ]
|
||||
Reference in New Issue
Block a user