diff --git a/.gitignore b/.gitignore index c2960e03..70dc44a6 100644 --- a/.gitignore +++ b/.gitignore @@ -124,3 +124,4 @@ src/FlubuCore.WebApi.Model/bin/ src/FlubuCore.WebApi.Updater/bin/ src/FlubuCore.WebApi/bin/ src/FlubuCore/bin/ +site/ diff --git a/docs/buildscript-fundamentals.md b/docs/buildscript-fundamentals.md index f59baef2..a338546b 100644 --- a/docs/buildscript-fundamentals.md +++ b/docs/buildscript-fundamentals.md @@ -23,6 +23,7 @@ Empty build script example ``` + ## **Targets** ------- @@ -58,6 +59,7 @@ You can also pass values to parameter through console arguments, FlubuCore confi `Flubu targetName2 -destination=SomeOtherDestination` + ### **Tasks** Tasks are divided in tasks and core tasks. tasks can be executed in .net and .net core projects. Core tasks can only be executed in .net core projects. @@ -110,7 +112,9 @@ All Tasks also have following methods ``` - ```.Interactive()``` - Interactively pass argument from console to specified task method / parameter. + + ### **Custom code / tasks** Following example executes some custom code. You can also use built in flubu tasks in custom code as shown in example. @@ -147,6 +151,7 @@ You can also pass arguments to custom code like so: ``` + ### **Target dependencies** Target can have dependencies on other targets. All dependenies will be executed before target in the specified order. @@ -160,9 +165,7 @@ When targetC is executed target’s will be executed in the following order: Tar .DependsOn(targetB, targetA); ``` - - - + ### **Reuse set of tasks in different targets** @@ -190,6 +193,7 @@ Following example shows how to reuse set of tasks in different targets: ``` + ### **Group tasks and apply When, OnError, Finally on them** - Conditonal task execution with When clause on group of tasks. @@ -243,6 +247,8 @@ Following example shows how to reuse set of tasks in different targets: }); ``` + + ### **Async execution of tasks, customCode and dependencies**