~n0mn0m/Statiq.Blog

ref: 4b4935fde43c5aa1b4ec3aef02fd964de9d96dbf Statiq.Blog/build.cake -rw-r--r-- 939 bytes
4b4935fdn0mn0m Init 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
var target = Argument("target", "Build");
var configuration = Argument("configuration", "Release");

Task("Clean")
    .Does(() => CleanDirectory($"./src/bin/**"))
    .Does(() => CleanDirectory("./temp"))
    .Does(() => CleanDirectory("./wwwroot"))
    .Does(() => CleanDirectory("./logs"))
    .Does(() => CleanDirectory("./output"));

Task("Build")
    .Does(() => DotNetCoreRun("./src/src.csproj"));

Task("Preview")
    .Does(() => DotNetCoreRun("./src/src.csproj", new ProcessArgumentBuilder()
        .Append("preview")
        .Append("--root=/Users/n0mn0m/RiderProjects/Unexpectedeof.Blog/")));
        
Task("Run")
    .Does(() => DotNetCoreRun("./src/src.csproj", new ProcessArgumentBuilder()
        .Append("--root=/Users/n0mn0m/RiderProjects/Unexpectedeof.Blog/")
        .Append("--log-file=run_")
        .Append("--nocache")
        .Append("--serial")));

Task("Default")
    .IsDependentOn("Build");

RunTarget(target);