@@ -6,7 +6,7 @@ open Helpers
66initializeContext()
77
88let buildPath = Path.getFullName " build"
9- let srcPath = Path.getFullName " src "
9+ let srcPath = Path.getFullName " stdlib "
1010let deployPath = Path.getFullName " deploy"
1111let testsPath = Path.getFullName " test"
1212
@@ -19,8 +19,6 @@ Target.create "Clean" (fun _ ->
1919 // run dotnet $"run -c Release -p {cliPath} -- clean --yes --lang Python " buildPath
2020)
2121
22- Target.create " InstallClient" ( fun _ -> run npm " install" " ." )
23-
2422Target.create " Build" ( fun _ ->
2523 Shell.mkdir buildPath
2624 run dotnet $" run -c Release -p {cliPath} -- --lang Python --exclude Fable.Core --outDir {buildPath}/lib" srcPath
@@ -30,13 +28,14 @@ Target.create "Run" (fun _ ->
3028 run dotnet " build" srcPath
3129)
3230
33- Target.create " RunTests " ( fun _ ->
31+ Target.create " Test " ( fun _ ->
3432 run dotnet " build" testsPath
3533 [ " native" , dotnet " run" testsPath
3634 " python" , dotnet $" run -c Release -p {cliPath} -- --lang Python --exclude Fable.Core --outDir {buildPath}/tests" testsPath
3735 ]
3836 |> runParallel
3937 Shell.Exec( " touch" , $" {buildPath}/tests/__init__.py" ) |> ignore
38+ Shell.Exec( " touch" , $" {buildPath}/tests/stdlib/__init__.py" ) |> ignore
4039 run pytest $" {buildPath}/tests" " "
4140)
4241
@@ -48,16 +47,13 @@ open Fake.Core.TargetOperators
4847
4948let dependencies = [
5049 " Clean"
51- ==> " InstallClient"
5250 ==> " Build"
5351
5452 " Clean"
55- ==> " InstallClient"
5653 ==> " Run"
5754
58- " InstallClient"
59- ==> " Build"
60- ==> " RunTests"
55+ " Build"
56+ ==> " Test"
6157]
6258
6359[<EntryPoint>]
0 commit comments