Skip to content

Commit

Permalink
Simplify and deduplicate Tool declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-VBFK committed Jan 6, 2023
1 parent 8439ac1 commit 6f7438f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@ class Build : NukeBuild

#if OS_WINDOWS
[PackageExecutable("Node.js.redist", "node.exe", Version = "16.17.1", Framework = "win-x64")]
Tool Node;
#elif OS_MAC
[PackageExecutable("Node.js.redist", "node", Version = "16.17.1", Framework = "osx-x64")]
Tool Node;
#else
[PackageExecutable("Node.js.redist", "node", Version = "16.17.1", Framework = "linux-x64")]
Tool Node;
#endif
Tool Node;

AbsolutePath ArtifactsDirectory => RootDirectory / "Artifacts";

Expand Down Expand Up @@ -263,10 +261,8 @@ class Build : NukeBuild
.Executes(() =>
{
Node($"{YarnCli} install --silent", workingDirectory: RootDirectory);
Node($"{YarnCli} --silent run cspell --no-summary", workingDirectory: RootDirectory,
Node($"{YarnCli} --silent run cspell --no-summary", workingDirectory: RootDirectory,
customLogger: (_, msg) => Error(msg));
});


bool IsTag => BranchSpec != null && BranchSpec.Contains("refs/tags", StringComparison.InvariantCultureIgnoreCase);
}

0 comments on commit 6f7438f

Please sign in to comment.