Friday, April 24, 2009

Fake - The future of .NET build tools?

Tired of XML based build systems?
Thought so. That's why I spent a few minutes hacking togheter the basis for my own build system. I call it Fake. And looks like this:
let clean = task "Clean" (fun () ->
    Console.WriteLine("Cleaning."))

[<Default>]
let build =
    task "Build the lot" (clean => fun () ->
        Console.WriteLine("Building.."))

let loadTestData =
    task "Load some test data" (fun () ->
        Console.WriteLine("Loading test data..."))

let test =
    task "Test it" ([build; loadTestData] => fun () ->
        Console.WriteLine("Running Tests...."))
Then simply
x:\..\>fake test
Cleaning.
Building..
Loading test data...
Running Tests....
x:\..\>
Is this idea worthwhile? Tell me in the comments.

1 comment:

  1. Looking great :)

    Getting you out of the xml trench got to be priority one for all, nant users. So, whenever you need to build something in the future I seriously would look into it.

    ReplyDelete