steelbrain / denode

Debug node apps like a pro
MIT License
142 stars 12 forks source link

[feature] denode start #4

Closed knownasilya closed 8 years ago

knownasilya commented 8 years ago

Would love to see denode start be a thing, kind of like npm start but it would just use the main property in the package.json.

This could also fix the issue where it's almost indistinguishable which app is being run, since all of the devtools windows say something like:

screen shot 2016-04-20 at 1 13 29 pm

So the name property from the package.json and the file name from main property could be used together: my-project: index.js

steelbrain commented 8 years ago

If you want denode to use the main property of a package, you could just do denode ./

You are right about the title, it should be fixed, maybe by adding a virtual file system layer and then visiting the main file there instead of file://, should be pretty easy

knownasilya commented 8 years ago

Might be nice to document denode ..

steelbrain commented 8 years ago

I would be happy to accept a PR for this :)

steelbrain commented 8 years ago

It looks like this now, it scans ./package.json for a name and fallback to DeNode

screen shot 2016-04-20 at 10 35 41 am
steelbrain commented 8 years ago

Released in v1.2.0

knownasilya commented 8 years ago

Nice 👍