diff --git a/package.bat b/build_package.bat similarity index 60% rename from package.bat rename to build_package.bat index 6f924e22..0fc7c5ad 100644 --- a/package.bat +++ b/build_package.bat @@ -1,4 +1,11 @@ +cd src +msbuild olympus.sln /t:Rebuild /p:Configuration=Release +cd .. cd client +call npm install +rmdir /s /q "hgt" +call npm run emit-declarations +call npm run build cd "plugins\controltips" call npm run build cd "..\.." diff --git a/client/package.json b/client/package.json index 59cdfe25..968b1b71 100644 --- a/client/package.json +++ b/client/package.json @@ -5,6 +5,7 @@ "version": "v0.4.5-alpha", "private": true, "scripts": { + "build": "browserify ./src/index.ts -p [ tsify --noImplicitAny] > index.js && copy.bat", "emit-declarations": "tsc --project tsconfig.json --declaration --emitDeclarationOnly --outfile ./@types/olympus/index.d.ts", "copy": "copy.bat", "start": "npm run copy & concurrently --kill-others \"npm run watch\" \"nodemon --ignore ./public/databases/ ./bin/www\"", diff --git a/scripts/OlympusCommand.lua b/scripts/OlympusCommand.lua index 2b4a03b6..e77dd00e 100644 --- a/scripts/OlympusCommand.lua +++ b/scripts/OlympusCommand.lua @@ -1,6 +1,6 @@ local version = "v0.4.5-alpha" -local debug = true -- True enables debug printing using DCS messages +local debug = false -- True enables debug printing using DCS messages -- .dll related variables Olympus.OlympusDLL = nil