Skip to content

Instantly share code, notes, and snippets.

@mapfel
Last active June 13, 2019 07:55
Show Gist options
  • Save mapfel/ded7d4ce9da6eb1666c7c220330181b5 to your computer and use it in GitHub Desktop.
Save mapfel/ded7d4ce9da6eb1666c7c220330181b5 to your computer and use it in GitHub Desktop.
Simple starting point for FAKe
#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"
SET TOOL_PATH=.fake
IF NOT EXIST "%TOOL_PATH%\fake.exe" (
dotnet tool install fake-cli --tool-path ./%TOOL_PATH%
)
"%TOOL_PATH%/fake.exe" %*
// [ 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