Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.76k stars 148 forks source link

devtool/bin/spawn replacement in Node/DevTool? Looking for advice ... #127

Closed mhulse closed 5 years ago

mhulse commented 5 years ago

I am working with this code that uses devtool/bin/spawn:

var headless = process.env.NODE_ENV === 'development' ? '' : '-hq';
var args = [ file, headless, '--bf', '-c', '-i', html, '--' ];
require('devtool/bin/spawn')(args.concat(process.argv.slice(2)));

Reading the README of this repo, it says:

This tool is mostly obsolete as much of the philosophy has been brought into Node/DevTool core, see here for details.

Just curious, is there something to replace devtool/bin/spawn in Node/DevTool? should I stop using this repo's bin/spawn?

I was even thinking about creating a module just for devtool/bin/spawn ... Then again, I don't know much about Node/DevTool ...

Mostly just looking for advice here. I really like how devtool spawns up Electron so I can run web and nodejs scripts via the command line. Optimally, I'd use similar code from Node/DevTool. I think I just need to be pointed in right direction by someone with more experience using these tools.

Thank you so much!

mhulse commented 5 years ago

I actually see that devtool/bin/spawn links to server.js, so it's not a simple port of spawn to a new repo.

I looks like node inspect is where I should start looking.

Thanks for reading and sorry for the noise. :)