-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
skaffold debug
: support npm-nodemon
#2170
Comments
I've attached a proof-of-concept This
(I'm pretty sure this script does not properly handle arguments with spaces; I wanted to avoid assuming bash.) |
This affects Skaffold's own There are two issues here, from what I can see:
To expand on the latter, So perhaps we should provide a Or could we make |
Another thing we could do is look for a
|
The node wrapper script may be the more robust implementation. |
skaffold debug
support npm-nodemon?skaffold debug
: support npm-nodemon
Making a non-question since there seems to be a PR toward implementing this. |
#2141 has one caveat:
This npm-nodemon style of launch seems useful, but it's unclear if
nodemon
makes sense with use with a debugger as DevTools seems to be able to upload and install file changes on the server.If we do need to support npm invoking nodemon, I think we'll need to take a different approach where we would wrap
node
with a script that would determine whether it is launching an application script or a library script fromnode_modules
such asnodemon
. If a library script, then it should not run with--inspect
and somehow defer it to a child node.The text was updated successfully, but these errors were encountered: