@@ -179,28 +179,19 @@ Target.create "NpmInstall" (fun _ ->
179179)
180180
181181Target.create " CompileFable" ( fun _ ->
182- let npx = " node_modules/npx/index.js" |> Path.GetFullPath
183-
184- CreateProcess.fromRawCommand " node" [ npx; " fable-splitter" ; " -c" ; " splitter-config.js" ]
185- |> CreateProcess.withWorkingDirectory Environment.CurrentDirectory
186- |> CreateProcess.withStandardError StreamSpecification.Inherit
187- |> CreateProcess.withStandardOutput StreamSpecification.Inherit
188- |> CreateProcess.ensureExitCode
189- |> Proc.run
182+ DotNet.exec ( fun o -> o) " fable" " src/Demo/Fable/Fable.fsproj"
190183 |> ignore
184+ //CreateProcess.fromRawCommand "node" [npx; "fable-splitter"; "-c"; "splitter-config.js"]
185+ //|> CreateProcess.withWorkingDirectory Environment.CurrentDirectory
186+ //|> CreateProcess.withStandardError StreamSpecification.Inherit
187+ //|> CreateProcess.withStandardOutput StreamSpecification.Inherit
188+ //|> CreateProcess.ensureExitCode
189+ //|> Proc.run
190+ //|> ignore
191191)
192192
193193Target.create " WatchFable" ( fun _ ->
194- let wpds = " node_modules/webpack-dev-server/bin/webpack-dev-server.js" |> Path.GetFullPath
195- //let proj = "src/FSharp.Data.Adaptive/FSharp.Data.Adaptive.fsproj" |> Path.GetFullPath
196- //let old = Environment.CurrentDirectory
197- //Environment.CurrentDirectory <- Path.GetDirectoryName proj
198- CreateProcess.fromRawCommand " node" [ wpds]
199- |> CreateProcess.withWorkingDirectory Environment.CurrentDirectory
200- |> CreateProcess.withStandardError StreamSpecification.Inherit
201- |> CreateProcess.withStandardOutput StreamSpecification.Inherit
202- |> CreateProcess.ensureExitCode
203- |> Proc.run
194+ DotNet.exec ( fun o -> o) " fable" " watch src/Demo/Fable -s --run webpack serve"
204195 |> ignore
205196
206197)
0 commit comments