<commit_before>#load "tools/includes.fsx"

open IntelliFactory.Build

let bt =
    BuildTool().PackageId("Zafir.Piglets")
        .VersionFrom("Zafir")
        .WithFSharpVersion(FSharpVersion.FSharp30)
        .WithFramework(fun fw -> fw.Net40)

let main =
    bt.Zafir.Library("WebSharper.Piglets")
        .SourcesFromProject()
        .References(fun r ->
            [
                r.NuGet("Zafir.Reactive").ForceFoundVersion().Reference()
                r.NuGet("Zafir.Html").ForceFoundVersion().Reference()
            ])

let test =
    bt.Zafir.HtmlWebsite("WebSharper.Piglets.Test")
        .SourcesFromProject()
        .References(fun r ->
            [
                r.NuGet("Zafir.Reactive").Reference()
                r.NuGet("Zafir.Html").Reference()
                r.Project(main)
            ])

bt.Solution [

    main
    test

    bt.NuGet.CreatePackage()
        .Description("Provides a framework to build reactive interfaces in Zafir,
            similar to Formlets but with more control over the structure of the output.")
        .ProjectUrl("http://github.com/intellifactory/websharper.piglets")
        .Configure(fun c ->
            {
                c with
                    Authors = ["IntelliFactory"]
                    Title = Some "Zafir.Piglets"
                    LicenseUrl = Some "http://github.com/intellifactory/websharper.piglets/blob/master/LICENSE.md"
                    RequiresLicenseAcceptance = true
            })
        .Add(main)

]
|> bt.Dispatch
<commit_msg>Disable tests for Zafir<commit_after>#load "tools/includes.fsx"

open IntelliFactory.Build

let bt =
    BuildTool().PackageId("Zafir.Piglets")
        .VersionFrom("Zafir")
        .WithFSharpVersion(FSharpVersion.FSharp30)
        .WithFramework(fun fw -> fw.Net40)

let main =
    bt.Zafir.Library("WebSharper.Piglets")
        .SourcesFromProject()
        .References(fun r ->
            [
                r.NuGet("Zafir.Reactive").ForceFoundVersion().Reference()
                r.NuGet("Zafir.Html").ForceFoundVersion().Reference()
            ])

let test =
    bt.Zafir.HtmlWebsite("WebSharper.Piglets.Test")
        .SourcesFromProject()
        .References(fun r ->
            [
                r.NuGet("Zafir.Reactive").Reference()
                r.NuGet("Zafir.Html").Reference()
                r.Project(main)
            ])

bt.Solution [

    main
//    test

    bt.NuGet.CreatePackage()
        .Description("Provides a framework to build reactive interfaces in Zafir,
            similar to Formlets but with more control over the structure of the output.")
        .ProjectUrl("http://github.com/intellifactory/websharper.piglets")
        .Configure(fun c ->
            {
                c with
                    Authors = ["IntelliFactory"]
                    Title = Some "Zafir.Piglets"
                    LicenseUrl = Some "http://github.com/intellifactory/websharper.piglets/blob/master/LICENSE.md"
                    RequiresLicenseAcceptance = true
            })
        .Add(main)

]
|> bt.Dispatch

{'fraction_non_alphanumeric': 0.11676451402478799, 'fraction_numerical': 0.002609262883235486, 'mean_word_length': 1.83456561922366, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7411886', 'n_tokens_mistral': 955, 'n_tokens_neox': 896, 'n_words': 147}