Skip to content

Commit

Permalink
(GitToolsGH-1932) Add Wyam Preview task
Browse files Browse the repository at this point in the history
This will help with getting the docs setup, as it will allow viewing
the generated docs locally with live reload, to allow adjustments to be
made.
  • Loading branch information
gep13 committed Nov 26, 2019
1 parent cf4df78 commit aae9c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#load "./build/artifacts-test.cake"
#load "./build/docker.cake"
#load "./build/publish.cake"
#load "./build/wyam.cake"

using Xunit;
using System.Diagnostics;
Expand Down
5 changes: 5 additions & 0 deletions build/utils/paths.cake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class BuildPaths

var semVersion = version.SemVersion;

var sourceDir = (DirectoryPath)(context.Directory("./src"));
var artifactsDir = (DirectoryPath)(context.Directory("./artifacts") + context.Directory("v" + semVersion));
var artifactsBinDir = artifactsDir.Combine("bin");
var artifactsBinPortableDir = artifactsBinDir.Combine("portable");
Expand All @@ -45,6 +46,7 @@ public class BuildPaths

// Directories
var buildDirectories = new BuildDirectories(
sourceDir,
artifactsDir,
nativeDir,
buildArtifactDir,
Expand Down Expand Up @@ -93,6 +95,7 @@ public class BuildFiles

public class BuildDirectories
{
public DirectoryPath Source { get; private set; }
public DirectoryPath Artifacts { get; private set; }
public DirectoryPath Native { get; private set; }
public DirectoryPath NugetRoot { get; private set; }
Expand All @@ -107,6 +110,7 @@ public class BuildDirectories
public ICollection<DirectoryPath> ToClean { get; private set; }

public BuildDirectories(
DirectoryPath sourceDir,
DirectoryPath artifactsDir,
DirectoryPath nativeDir,
DirectoryPath buildArtifactDir,
Expand All @@ -120,6 +124,7 @@ public class BuildDirectories
DirectoryPath artifactsBinFullFx472Dir
)
{
Source = sourceDir;
Artifacts = artifactsDir;
Native = nativeDir;
BuildArtifact = buildArtifactDir;
Expand Down

0 comments on commit aae9c92

Please sign in to comment.