build: fix builder

This commit is contained in:
Jonas Juselius
2022-09-16 19:44:46 +02:00
parent 9a2adaa6da
commit 1c3d3de567

View File

@@ -11,11 +11,11 @@ let srcPath = Path.getFullName "src"
let testPath = Path.getFullName "test"
let libPath = Some srcPath
let deployPath = Path.getFullName "deploy"
let distPath = Path.getFullName "dist"
let packPath = Path.getFullName "packages"
let versionFile = Path.getFullName ".version"
Target.create "Clean" (fun _ -> Shell.cleanDir deployPath)
Target.create "Clean" (fun _ -> Shell.cleanDir distPath)
Target.create "InstallClient" (fun _ ->
run npm "install" "."
@@ -23,11 +23,11 @@ Target.create "InstallClient" (fun _ ->
)
Target.create "Bundle" (fun _ ->
run dotnet $"publish -c Release -o \"{deployPath}\"" srcPath
run dotnet $"publish -c Release -o \"{distPath}\"" srcPath
)
Target.create "BundleDebug" (fun _ ->
run dotnet $"publish -c Debug -o \"{deployPath}\"" srcPath
run dotnet $"publish -c Debug -o \"{distPath}\"" srcPath
)
Target.create "Pack" (fun _ ->