Using babel-node and nodemon
kaatt opened this issue ยท 6 comments
nodejs-dashboard babel-node index.js
works fine.
Dunno how to use it with both nodemon and babel-node.
This is the raw command i used earlier btw: nodemon index.js --exec babel-node
@kaatt I'm not sure yet whether it makes more sense to run the dashboard within nodemon or nodemon within the dashboard, but this appears to work:
nodemon --exec "nodejs-dashboard babel-node" src/index.js
I currently have a grunt serve script that runs grunt-nodemon. Is there a possible way to integrate the dashboard with grunt?
@imthinhvu -- Looks like you can pass https://github.com/ChrisWren/grunt-nodemon#exec , so @exogen 's example above may look something like:
nodemon: {
dev: {
script: "src/index.js",
options: {
exec: "nodejs-dashboard babel-node"
}
}
}
or
nodemon: {
dev: {
script: "src/index.js",
},
exec: {
options: {
exec: "nodejs-dashboard babel-node"
}
}
}
(above is totally untested code, but seems to comport with the grunt-nodemon
docs)
@exogen confirm that the dashboard starts:
"command": "nodemon --exec 'nodejs-dashboard babel-node' index",
@jasonwilson these mouse events still happen