Mancy icon indicating copy to clipboard operation
Mancy copied to clipboard

bring-your-own Node.js optional alternative to Electron-built-in-Node.js

Open jokeyrhyme opened this issue 8 years ago • 2 comments

Is it technically feasible to use an external Node.js executable with Mancy?

I ask because Electron comes with Node.js 4.1.1, and I'm using Node.js 5.1.0 with my own projects. It gets a bit confusing trying to remember which syntax is available in which Node.js version.

Is this something that you'd accept a PR for?

Clarification:

  • Mancy continues to come with Electron-supplied-Node.js, whichever version that is
  • but there's a new setting in Mancy that accepts the absolute path to any modern Node.js executable

jokeyrhyme avatar Dec 01 '15 05:12 jokeyrhyme

@jokeyrhyme, I accept PR :smile:. We just need electron supplied v8 to run mancy. User commands can be executed in remote node.js. we may need to have a socket connection and pass around context and code to run. I am not sure what else break because of this change. we can experiment that.

For now, Use babel to avoid syntax avaliable problem.

princejwesley avatar Dec 01 '15 05:12 princejwesley

@jokeyrhyme Electron 0.36 backs node 5.1.1/ chrome 47. so we don't have to worry about newer version that electron team constantly upgrading.

princejwesley avatar Dec 15 '15 16:12 princejwesley