forked from ChilliCream/graphql-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.Environment.cs
33 lines (27 loc) · 1.93 KB
/
Build.Environment.cs
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
30
31
32
33
using Nuke.Common.IO;
partial class Build
{
const string Debug = "Debug";
const string Release = "Release";
const string Net50 = "net5.0";
const string Net60 = "net6.0";
readonly int DegreeOfParallelism = System.Environment.ProcessorCount * 3;
AbsolutePath SourceDirectory => RootDirectory / "src";
AbsolutePath AllSolutionFile => SourceDirectory / "All.sln";
AbsolutePath PublicApiSolutionFile => SourceDirectory / "Build.CheckApi.sln";
AbsolutePath SonarSolutionFile => SourceDirectory / "Build.Sonar.sln";
AbsolutePath TestSolutionFile => TemporaryDirectory / "Build.Test.sln";
AbsolutePath PackSolutionFile => SourceDirectory / "Build.Pack.sln";
AbsolutePath SgSolutionFile => SourceDirectory / "StrawberryShake" / "SourceGenerator" / "StrawberryShake.SourceGenerator.sln";
AbsolutePath OutputDirectory => RootDirectory / "output";
AbsolutePath TestResultDirectory => OutputDirectory / "test-results";
AbsolutePath CoverageReportDirectory => OutputDirectory / "coberage-reports";
AbsolutePath PackageDirectory => OutputDirectory / "packages";
AbsolutePath StarWarsTemplateNuSpec => RootDirectory / "templates" / "StarWars" / "HotChocolate.Templates.StarWars.nuspec";
AbsolutePath StarWarsProj => RootDirectory / "templates" / "StarWars" / "content" / "StarWars.csproj";
AbsolutePath EmptyServerTemplateNuSpec => RootDirectory / "templates" / "Server" / "HotChocolate.Templates.Server.nuspec";
AbsolutePath EmptyServerProj => RootDirectory / "templates" / "Server" / "content" / "HotChocolate.Server.Template.csproj";
AbsolutePath TemplatesNuSpec => RootDirectory / "templates" / "v12" / "HotChocolate.Templates.nuspec";
AbsolutePath EmptyServer12Proj => RootDirectory / "templates" / "v12" / "server" / "HotChocolate.Template.Server.csproj";
AbsolutePath EmptyAzf12Proj => RootDirectory / "templates" / "v12" / "function" / "HotChocolate.Template.AzureFunctions.csproj";
}