FormidableLabs/nodejs-dashboard

Using babel-node and nodemon

kaatt opened this issue ยท 6 comments

kaatt commented

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",

but I have issues with mouse events:
screenshot 2016-10-13 14 28 47

i run into the same problem:

 "watch:server": "./node_modules/.bin/nodemon --exec 'nodejs-dashboard node' './dist/app.bundle.js' --watch './dist'",

f56dae57-4c7d-48d0-92e9-a24b8be6def2

@jasonwilson these mouse events still happen