Last active
June 13, 2019 07:55
-
-
Save mapfel/ded7d4ce9da6eb1666c7c220330181b5 to your computer and use it in GitHub Desktop.
Simple starting point for FAKe
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
#load ".fake/build.fsx/intellisense.fsx" | |
open Fake.Core | |
open Fake.DotNet | |
open Fake.IO | |
open Fake.IO.FileSystemOperators | |
open Fake.IO.Globbing.Operators | |
open Fake.Core.TargetOperators | |
Target.create "Clean" (fun _ -> | |
!! "src/**/bin" | |
++ "src/**/obj" | |
|> Shell.cleanDirs | |
) | |
Target.create "Build" (fun _ -> | |
!! "src/**/*.*proj" | |
|> Seq.iter (DotNet.build id) | |
) | |
Target.create "All" ignore | |
"Clean" | |
==> "Build" | |
==> "All" | |
Target.runOrDefault "All" |
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
SET TOOL_PATH=.fake | |
IF NOT EXIST "%TOOL_PATH%\fake.exe" ( | |
dotnet tool install fake-cli --tool-path ./%TOOL_PATH% | |
) | |
"%TOOL_PATH%/fake.exe" %* |
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
// [ FAKE GROUP ] | |
group Build | |
storage none | |
source https://api.nuget.org/v3/index.json | |
nuget Fake.DotNet.Cli | |
nuget Fake.IO.FileSystem | |
nuget Fake.Core.Target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment