-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ricaun-io/develop
## [0.0.9] / 2021-12-17
- Loading branch information
Showing
8 changed files
with
53 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 7 additions & 5 deletions
12
Build/IExampleCompile.cs → ricaun.Nuke/Components/ICompileExample.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
using Nuke.Common; | ||
using ricaun.Nuke.Components; | ||
using ricaun.Nuke.Extensions; | ||
|
||
public interface IExampleCompile : ICompile, ISign, IRelease, IHazContent | ||
namespace ricaun.Nuke.Components | ||
{ | ||
Target ExampleCompile => _ => _ | ||
public interface ICompileExample : IHazExample, ICompile, ISign, IRelease, IHazContent, INukeBuild | ||
{ | ||
Target CompileExample => _ => _ | ||
.TriggeredBy(Compile) | ||
.Before(Sign) | ||
.Executes(() => | ||
{ | ||
Solution.BuildOtherProject("Examples", (project) => | ||
Solution.BuildOtherProject(GetExampleProject(), (project) => | ||
{ | ||
SignProject(project); | ||
var folder = GetContentDirectory(project); | ||
var folder = ExampleDirectory; | ||
var fileName = project.Name; | ||
var zipFile = ReleaseDirectory / $"{fileName}.zip"; | ||
ZipExtension.CreateFromDirectory(folder, zipFile); | ||
}); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
using Nuke.Common; | ||
using Nuke.Common.IO; | ||
using Nuke.Common.ProjectModel; | ||
using Nuke.Common.ValueInjection; | ||
using ricaun.Nuke.Extensions; | ||
namespace ricaun.Nuke.Components | ||
{ | ||
public interface IHazExample : IHazSolution, INukeBuild | ||
{ | ||
/// <summary> | ||
/// Folder Example | ||
/// </summary> | ||
[Parameter] | ||
string Folder => ValueInjectionUtility.TryGetValue(() => Folder) ?? "Release"; | ||
|
||
/// <summary> | ||
/// Example Project Name | ||
/// </summary> | ||
[Parameter] | ||
string Name => ValueInjectionUtility.TryGetValue(() => Name) ?? $"{Solution.Name}.Example"; | ||
|
||
AbsolutePath ExampleDirectory => GetExampleDirectory(GetExampleProject()); | ||
public Project GetExampleProject() => Solution.GetOtherProject(Name); | ||
public AbsolutePath GetExampleDirectory(Project project) => project.Directory / "bin" / Folder; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters