Closed gsf closed 10 years ago
Gabriel, these are really good points, thanks.
I am not so sure that most projects define "main." The projects we can't see are all the "client projects" on which people will be most likely to actually use node-dev-proxy, because they are websites and node-dev-proxy is really convenient for accessing websites, and not really intended for running anything with command line arguments.
The apostrophe sandbox specifies "main" correctly, so all of our projects born from it probably do too, but I'm willing to bet lots of projects get this wrong or have no package.json yet at a certain stage of development.
How about:
Sounds like a plan I can get behind!
Many non-express Node apps use server.js as the main executable (that's the default for
npm start
). We could take several approaches to account for this:npm start
. This would require any sites using something other than server.js to define a "start" script in package.json. And it wouldn't allow for switching the "node" executable out for nodemon or node-dev.