Show HN: Debugging Babel and Node done right
Method:
I'm using these scripts in package.json.
"scripts": {
"di": "node-inspector -d=7000 -p=8000 --save-live-edit --hidden node_modules/",
"ds1": "babel ./server -d ./build/server -s -w",
"ds2": "nodemon --watch ./build/server --delay 100ms --debug=7000 ./build/server/main.js"
},
Then run "npm run ds1; npm run ds2; npm run di"Why:
I took some time to put this together, after navigating all the tools out there. I personally find this to be "correct". Thought I'd share.
Did not use: babel-watch, babel-node, forever, etc. I found configurations with those tools to not meet the requirements.