DotNetMon is an "in-process file watcher" for .NET
It's like nodemon but for use in .NET and written in F#
At this time there is no NuGet package or any other way of install, build from source and add the exec file in your path.
##Usage DotNetMon wraps the starting of web server, so you can run dotnetmon in the project directory:
> dotnetmon -e cs,cshtml
###Defaults By default dotnetmon runs kestrel in "." path.
###Runing web
use the --server
option for select a server from your project.json file:
> dotnetmon -e cs,cshtml --server web
###Running other processes
DotNetMon can also be used to execute other programs:
> dotnetmon -e txt,py --exec python app.py
##TODO This is a proof of concept, there is no tests yet and I'm still learning F#, so the code, and the solution itself, maybe wrong or complex, so, Forks and Pull Requests appreciated!
- Add tests
- Add all options avalible in nodemon
The other day I saw this jeremydmiller's tweet and I tought it would be great to build one.
###hey, do you know kmon?
Yeah, I know kmon "solves" the problem, but is only a wrapper around nodemon and looks like don't will remove this dependency
###hey, do you know the --watch
option?
Yeah, I know you can use --watch kestrel
but this only watch for file change and stop the server... anithing more, and looks like is not working on OSX
##Tech DotNetMon uses the FSWatcher library for watch file changes. FSWatcher looks as the best option written in C# and working well on Mono.
At this time is using a dll reference because there is no nuget package