Experience-Monks / devtool

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

Use devtool as a npm module #62

Open alejandronanez opened 8 years ago

alejandronanez commented 8 years ago

Hey there,

I tried to install devtool as an npm module to call it later on my npm scripts like this: {"debug": "devtool app.js"} but I don't see my app.js file inside the electron app.

Any thoughts?

Thanks!!!

atian25 commented 8 years ago

try "debug": "./node_modules/devtool/bin/index.js"

mattdesl commented 8 years ago

If you npm install devtool --save you should be able to reference it by name. If there's still a problem could you put together a repo showing the issue?

Here is a project that uses devtool locally: https://github.com/Jam3/three-png-stream/blob/766a3ca34ce284e32a462c5fbd465fd80ca9ae73/package.json#L25