@@ -13,10 +13,13 @@ let mainPackageDir = "build/main/deploy/"
1313let dataBuildDir = " build/data/bin/"
1414let dataPackageDir = " build/data/deploy/"
1515
16+ let typescriptBuildDir = " build/typescript/bin/"
17+ let typescriptPackageDir = " build/typescript/deploy/"
18+
1619let rxBuildDir = " build/rx/bin/"
1720let rxPackageDir = " build/rx/deploy/"
1821
19- let testBuildDir = " build/data/bin /"
22+ let testBuildDir = " build/tests /"
2023
2124let dependenciesDir = " src/packages/"
2225let versionNumber =
@@ -32,6 +35,10 @@ Target "Clean-Data" (fun _ ->
3235 CleanDirs[ dataBuildDir; dataPackageDir]
3336)
3437
38+ Target" Clean-TypeScript" ( fun _ ->
39+ CleanDirs[ typescriptBuildDir; typescriptPackageDir]
40+ )
41+
3542Target" Clean-Rx" ( fun _ ->
3643 CleanDirs[ rxBuildDir; rxPackageDir]
3744)
@@ -95,6 +102,27 @@ Target "Build-Data" (fun _ ->
95102|> Log" Build-Data-Output:"
96103)
97104
105+ Target" Build-TypeScript" ( fun _ ->
106+
107+ // RestorePackages()
108+ // CopyDir dependenciesDir "./packages/" (fun _ -> true)
109+
110+ CreateFSharpAssemblyInfo" src/extra/FunScript.TypeScript/AssemblyInfo.fs"
111+ [
112+ yield Attribute.Title" TypeInferred.FunScript.TypeScript"
113+ yield Attribute.Description" TypeScript Interop Library - FunScript"
114+ yield Attribute.Guid" 891C8111-4D9D-45CD-8A8D-77EB817FF8E1"
115+ yield ! baseAttributes
116+ ]
117+
118+ let projectFiles = !! " src/extra/FunScript.TypeScript/*.fsproj"
119+
120+ Log" Build-TypeScript-Projects:" projectFiles
121+
122+ MSBuildRelease typescriptBuildDir" Build" projectFiles
123+ |> Log" Build-TypeScript-Output:"
124+ )
125+
98126Target" Build-Rx" ( fun _ ->
99127
100128// RestorePackages()
@@ -122,7 +150,7 @@ Target "Build-Test" (fun _ ->
122150
123151 Log" Build-Test-Projects:" projectFiles
124152
125- MSBuildRelease testBuildDir" Build" projectFiles
153+ MSBuildDebug testBuildDir" Build" projectFiles
126154|> Log" Build-Test-Output:"
127155)
128156
@@ -220,24 +248,20 @@ Target "Release" DoNothing
220248
221249" Build-Main"
222250==> " Build-Data"
251+ ==> " Build-TypeScript"
252+ ==> " Build-Rx"
253+ ==> " Build-Test"
223254
224255" Clean-Data"
225256==> " Build-Data"
226257==> " Create-Package-Data"
227258==> " Release"
228259
229- " Build-Main"
230- ==> " Build-Rx"
231-
232260" Clean-Rx"
233261==> " Build-Rx"
234262==> " Create-Package-Rx"
235263==> " Release"
236264
237- " Build-Main"
238- ==> " Build-Rx"
239- ==> " Build-Test"
240-
241265" Clean-Test"
242266==> " Build-Test"
243267==> " Run-Test"