-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
(GH-142) modified gitignore, so that the cakefrosting
- Loading branch information
Showing
15 changed files
with
68 additions
and
142 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,3 +50,4 @@ Desktop.ini | |
bin/ | ||
obj/ | ||
/src/projectTemplates/**/.idea | ||
!/src/projectTemplates/**/build |
20 changes: 0 additions & 20 deletions
20
src/projectTemplates/cakeaddin/.template.config/dotnetcli.host.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
35 changes: 0 additions & 35 deletions
35
src/projectTemplates/cakeaddin/.template.config/ide.host.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
src/projectTemplates/cakeaddintest/.template.config/dotnetcli.host.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
21 changes: 0 additions & 21 deletions
21
src/projectTemplates/cakeaddintest/.template.config/ide.host.json
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/projectTemplates/cakefrosting/.template.config/dotnetcli.host.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
14 changes: 0 additions & 14 deletions
14
src/projectTemplates/cakefrosting/.template.config/ide.host.json
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Cake.Frosting" Version="1.0.0" /> | ||
</ItemGroup> | ||
</Project> |
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,57 @@ | ||
using System.Threading.Tasks; | ||
using Cake.Core; | ||
using Cake.Core.Diagnostics; | ||
using Cake.Frosting; | ||
|
||
public static class Program | ||
{ | ||
public static int Main(string[] args) | ||
{ | ||
return new CakeHost() | ||
.UseContext<BuildContext>() | ||
.Run(args); | ||
} | ||
} | ||
|
||
public class BuildContext : FrostingContext | ||
{ | ||
public bool Delay { get; set; } | ||
|
||
public BuildContext(ICakeContext context) | ||
: base(context) | ||
{ | ||
Delay = context.Arguments.HasArgument("delay"); | ||
} | ||
} | ||
|
||
[TaskName("Hello")] | ||
public sealed class HelloTask : FrostingTask<BuildContext> | ||
{ | ||
public override void Run(BuildContext context) | ||
{ | ||
context.Log.Information("Hello"); | ||
} | ||
} | ||
|
||
[TaskName("World")] | ||
[IsDependentOn(typeof(HelloTask))] | ||
public sealed class WorldTask : AsyncFrostingTask<BuildContext> | ||
{ | ||
// Tasks can be asynchronous | ||
public override async Task RunAsync(BuildContext context) | ||
{ | ||
if (context.Delay) | ||
{ | ||
context.Log.Information("Waiting..."); | ||
await Task.Delay(1500); | ||
} | ||
|
||
context.Log.Information("World"); | ||
} | ||
} | ||
|
||
[TaskName("Default")] | ||
[IsDependentOn(typeof(WorldTask))] | ||
public class DefaultTask : FrostingTask | ||
{ | ||
} |
12 changes: 0 additions & 12 deletions
12
src/projectTemplates/cakemodule/.template.config/dotnetcli.host.json
This file was deleted.
Oops, something went wrong.
Binary file not shown.
14 changes: 0 additions & 14 deletions
14
src/projectTemplates/cakemodule/.template.config/ide.host.json
This file was deleted.
Oops, something went wrong.