FCSWatch icon indicating copy to clipboard operation
FCSWatch copied to clipboard

Add WebServer reload mode

Open humhei opened this issue 6 years ago • 9 comments

Releated codes https://github.com/humhei/FCSWatch/blob/master3/src/FcsWatch/Types.fs#L105

[<RequireQualifiedAccess>]
type DevelopmentTarget =
    | Program
    | Plugin of Plugin

humhei avatar Feb 23 '19 10:02 humhei

My major purpose for this tool is Excel Dna plugin,

But it should be very easy to port it to other webservers (suave, giraffe)

humhei avatar Feb 23 '19 10:02 humhei

Hi @humhei,

I'm really impressed with your work here. It's possible this should replace (or be merged with) the FSLive tool in https://github.com/fsprojects/FSharp.Compiler.PortaCode

I'm wondering, would you like to move this to the fsprojects incubation space?

best don

dsyme avatar Feb 25 '19 20:02 dsyme

@dsyme Thanks very much for your invitation ❤️

Of course.(Actually I thought the some these days)

This is my first time to migrate to fsprojects

Please give me more guidance if needed 😏

humhei avatar Feb 26 '19 02:02 humhei

Began the migrate work. May complete in few days...

humhei avatar Feb 28 '19 11:02 humhei

Should worked now, (since 0.6.x) But only for binary Not for porta codes

humhei avatar Mar 24 '19 13:03 humhei

@humhei What's the usage model for this? I didn't spot it in the docs

dsyme avatar Apr 10 '19 18:04 dsyme

https://github.com/humhei/FCSWatch#from-cli autoreload feature which is the same feature to dotnet-watch

  • dotnet tool install --global fcswatch-cli
  • mkdir hello
  • cd hello
  • dotnet new console --language f#
  • fcswatch
  • change file in Program.fs image

humhei avatar Apr 10 '19 23:04 humhei

Because web server is a single console application now So web server should also get worked 😄

Also workd for Expecto tests..

https://twitter.com/i/status/1109809542299148288

humhei avatar Apr 10 '19 23:04 humhei

The difference to dotnet watch is that, It's performance is much faster than dotnet watch

humhei avatar Apr 10 '19 23:04 humhei