Closed ruyadorno closed 8 years ago
I like the idea but some comments from my side:
node-inspector
as a peerDependencies
5858
is always free, right?Didn't know that pre
and post
commands are working with custom scripts. Thanks for teaching me something new every PR :tada:
:smile: hahaha, I haven't even thought about it, just assumed the pre
and post
would work everywhere
peerDependencies
do not auto-install anymore - it would make sense to have it as a devDependencies
since it's actually part of the development, on the bright side it's more convenient to just run npm install
and have a complete working environmentelectron --debug=5858
if we want to be more explicit about itI know that peerDependencies
are not auto install anymore, but for me it's still a peerDependency
rather than a devDependency
. The user will receive a warning in the console if the peerDependency is not installed so he could perform the install command by himself.
Anyway, if we adding node-inspector
as a devDependency
we have to exclude it from the build https://github.com/yeoman/yeoman-app/blob/e4ebc74969941b67520f085716aff3e39c467a2c/scripts/build.js#L29-L30 to reduce the app size. Finally, my favorite argument, each new dependency slows down the CI build and the initial npm install
command :stuck_out_tongue:
hehehe :+1: agreed, those are good arguments - specially thinking that not everyone might actually want to debug
I'll work on these changes
specially thinking that not everyone might actually want to debug
Yes, that's the best one.
:+1: done!
:tada: Thanks for adding this!
What do you think about this @stefanbuck ?
I imagine you were probably already using
node-inspector
(or something similar) on your side to debug the browser process but I think it would be a good idea to have these tasks declared as npm scripts and standardize the debug process.My idea is to have the two tasks, that will need to be run in parallel:
npm run debug
starts the electron app in debug modenpm run inspector
starts the node-inspector server and opens it on the browser