-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding nodemon to Kulture addin #5
Comments
+1 this would be a great addition |
Sounds like a great idea! I'm not python expert either, it's all trial and error. If someone could send a pr that would speed it up. |
@sayedihashimi Yes we totally need to do this. Should we use nodemon? Maybe you can I can try to do this together to learn. |
@shanselman I discussed with @spboyer and he will send a PR. Is there an alternative to |
|
BTW @spboyer you need the at sign to CC :) |
@johnpapa the cd and source are a part of the command that is run as a part of the 'k kestrel' to ensure we are executing in the proper dir. |
kmon is pronounced "kuh-mon" :) |
pull request submitted for "kuh-mon" currently supports cs and json file changes, should probably files supported to settings file and add win support. |
Moving comments from #6 here. Thanks for the PR. I tried it out and it looks to work pretty good. I really appreciate that you took time out of your day to put this together. I don't think that this is the correct way to implement this though. I say that because we add I think we have the following options to get this implemented. I've ordered them in what I think is the correct prioritization (closer to the top means its preferred). Option 1: create an ASP.NET 5 project commandFYI I just came up with the term "project command" there may be another term that I should be using that I'm not aware of Kulture and other editors have built in support for discovering and invoking commands in project. This is how Option 2: update Kulture with this baked inKulture currently has built in support for Pros/ConsI'll enumerate what I think the pros/cons are to both approaches from an external perspective. Option1Pros
Cons
Option 2Pros
Cons
Let me know what you think. If you are up for creating the command I'll try and get you some info on how to do that. |
@spboyer FYI from the PR @henriksen has stated that his is available to help out with this feature if needed |
@sayedihashimi @henriksen what repo is the "project command" implementations in so we can start looking at this? I will repost the question of the hard dependency on @johnpapa stated nodemon is the de facto standard and has quite a bit more downloads. Juts want to make sure we are looking at all options. |
@spboyer you just create a console app and then in consuming proj add
Both kestrel and scaffolding are used in this way. For the content that goes into project.json here are examples Adding @davidfowl in case i got anything wrong. Let me know if you need more details. |
@spboyer Regards nodemon vs others: Since kestrelmon is just a console app it won't be hard to enable multiple watchers. I suggest that supportig nodemon is the first goal and supervisior is the next. Once there's two providers in there it should be trivial for someone to figure out how to add a third, fourth and so on. |
I've made a proof-of-concept kestrelmon. Works on Win32 for now with nodemon starting "k web" and watching for changes in cs and js files. Will work on Linux and Kestrel version later. Feel free to fork and pull or contrib. @spboyer: I added you as a contributor, let me know if you don't want to. |
Making some updates now. |
I looked at your repo and it looks like you got it all setup right. FYI you can add parameters after kestrelmon, just like kestrel. |
Those are the changes. Thanks for point to the scaffolding project big help |
@henriksen has created a prototype at https://github.com/henriksen/Kestrelmon/tree/master. Anyone have a few minutes to try it out? cc @suhasj |
@sayedihashimi works great in win, started adding OS X support. Could use some assistance. Use 0.2.0 |
A spot of trouble in Debian, but should get that sorted this weekend. |
With "Debian", I mean the version pronounced "Ubuntu". |
Should we email 📧 insiders or tweet folks to try it out? |
@spboyer "Could use some assistance." |
I'd like to get it working on Linux before we go wide. Let me post here when it works. |
@spboyer What seems to be the officer, Problem? |
@henriksen @sayedihashimi when sublime on OSX getting the following error: good to go from Win. |
so.. i wonder if this is the right approach? I was trying to do live reload just like visual studio and maybe this should not be baked in kulture or any other plugin for that matter. gulp.task('aspnet-run', aspnetk({
kCommand: 'kestrel' //default is 'web'
})); Maybe we should a gulpfile on the aspnet-generator to create basic commands and assume it's gonna be available? |
@luisrudge - if that works, then 👍 |
Nice @luisrudge! One advantage I see with making a k-command of it is that it would be independent of your build system. Although there is probably a similar task for grunt as well. |
if this k-command is just for sublime, then it's going to be a pain to implement and support across editors. The thing that I disliked most is that the |
This is a generic asp.net project command that you can run from the command line. "k mon". Kulture will pick it up from the project.json file and make it available. This is option 1 in @sayedihashimi long comment further up here. |
Yes, this restarts the process. |
ahh, ok then! that would be great! but we should discuss that in other issue, right? |
@luisrudge please read my design proposal above |
I read it! I just didn't understand at the time. Now I do and I fully agree with the first proposal! |
Don't call it kestrelmon, it makes no sense. Just call it kmon or something. |
Anyone opposed to renaming it to kmon? |
+1 |
O kmon - we'll rename it.
|
👍 |
kmon is now available. Next release 0.3.0-* supports Sublime commands integration on OSX and Windows. Please put all future issues related to kmon here: https://github.com/henriksen/kmon/issues |
Awesome! |
@spboyer 👍 thanks a lot for putting this together! This is awesome. |
Compiling scripts and suggestions I was able to get nodemon to watch for file changes in my projects and auto restart kestrel. Not being a Python dev, can we get another K command added?
cd [project dir] && source kvm.sh && nodemon --exec "k kestrel" -e cs,json
Name: K Mon
@johnpapa @bmsullivan
The text was updated successfully, but these errors were encountered: