Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Conversation

@JeremyTCD
Copy link

@JeremyTCD JeremyTCD commented Jun 5, 2018

@SteveSandersonMS kindly consider.

Goal:
Allow INodeServices consumers to specify Node.js Options such as --inspect-brk. The merits of exposing Node.js options were discussed in these issues:

Summary of changes:
I've made some changes that allow for node options to be specified. Backward compatibility has been preserved.

  • Added NodeServicesOptions.NodeOptions.
  • Added nodeOptions parameter to an overload of OutOfProcessNodeInstance's constructor.
  • Added nodeOptions parameter to an overload of OutOfProcessNodeInstance.PrepareNodeProcessStartInfo.
  • Updated HttpNodeInstance and SocketNodeInstance (classes that implement OutOfProcessNodeInstance ) to pass NodeServicesOptions.NodeOptions to OutOfProcessNodeInstances's constructor.

If these changes are acceptable, I'll update the ReadMe as well. Thanks for considering.

- Added NodeServicesOptions.NodeOptions.
- Added "nodeOptions" argument to OutOfProcessNodeInstances constructor.
- Updated HttpNodeInstance and SocketNodeInstance (classes that implement OutOfProcessNodeInstance ).
@dnfclas
Copy link

dnfclas commented Jun 5, 2018

CLA assistant check
All CLA requirements met.

JeremyTCD added 2 commits June 5, 2018 16:39
- Reverted parameter names
- Overloaded OutOfProcessNodeInstance's constructor and OutOfProcessNodeInstance.PrepareNodeProcessStartInfo instead of using an optional parameters
JeremyTCD added a commit to JeringTech/Web.SyntaxHighlighters.Prism that referenced this pull request Jun 7, 2018
- Fork allows for debugging js scripts, can use main package if this pull request aspnet/JavaScriptServices#1669 is accepted.
@natemcmaster natemcmaster changed the base branch from dev to master July 2, 2018 17:58
@JeremyTCD
Copy link
Author

NODE_OPTIONS can be specified in NodeServicesOptions.EnvironmentVariables to provide options for the Node.js process.

@JeremyTCD JeremyTCD closed this Jul 6, 2018
@JeremyTCD JeremyTCD deleted the expose_node_options branch July 6, 2018 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants