Skip to content

Commit d4ca193

Browse files
committed
Adapting build script to ongoing Statiq Framework changes
1 parent 98cc21f commit d4ca193

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

build/NetlifySharp.Build/NetlifySharp.Build.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<DefaultItemExcludes>$(DefaultItemExcludes);output\**;temp\**;reportgenerator.exe;nuget.exe</DefaultItemExcludes>
88
</PropertyGroup>
99

10+
<!--
1011
<ItemGroup>
1112
<PackageReference Include="Statiq.App" Version="1.0.0-alpha.19" />
1213
</ItemGroup>
14+
-->
1315

14-
<!--
1516
<ItemGroup>
1617
<ProjectReference Include="..\..\..\..\statiqdev\Statiq.Framework\src\core\Statiq.App\Statiq.App.csproj" />
1718
<ProjectReference Include="..\..\..\..\statiqdev\Statiq.Framework\src\core\Statiq.Common\Statiq.Common.csproj" />
1819
<ProjectReference Include="..\..\..\..\statiqdev\Statiq.Framework\src\core\Statiq.Core\Statiq.Core.csproj" />
1920
</ItemGroup>
20-
-->
2121
</Project>

build/NetlifySharp.Build/Program.cs

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ public class Program
1515
private const string BuildProperties = nameof(BuildProperties);
1616

1717
public static async Task<int> Main(string[] args) => await Bootstrapper
18-
.CreateDefault(args, DefaultsToAdd.All & ~DefaultsToAdd.Commands)
19-
20-
// Configure build settings for the correct version
18+
.CreateDefault(args)
2119
.ConfigureSettings(x =>
2220
{
2321
string version = File.ReadAllLines("../../ReleaseNotes.md")[0].TrimStart('#').Trim();
@@ -28,22 +26,7 @@ public static async Task<int> Main(string[] args) => await Bootstrapper
2826
x[BuildVersion] = version;
2927
x[BuildProperties] = $"-p:Version={version} -p:AssemblyVersion={version} -p:FileVersion={version}";
3028
})
31-
32-
// Add build commands to the CLI
33-
.AddBuildCommand("build", "Builds all projects.", nameof(Build))
34-
.AddBuildCommand("test", "Builds and tests all projects.", nameof(Test))
35-
.AddBuildCommand("pack", "Packs the packages.", nameof(Pack))
36-
.AddBuildCommand("zip", "Zips the binaries.", nameof(Zip))
37-
.AddBuildCommand("publish", "Publishes the packages and documentation site.", nameof(Publish))
38-
39-
// Add pipelines
40-
.AddPipeline<Build>()
41-
.AddPipeline<Test>()
42-
.AddPipeline<Pack>()
43-
.AddPipeline<Zip>()
44-
.AddPipeline<Publish>()
45-
46-
// Run the app
29+
.AddPipelines<Program>()
4730
.RunAsync();
4831

4932
private static DirectoryPath GetBuildPath(IDocument doc, IExecutionContext ctx) =>

0 commit comments

Comments
 (0)