DTrejo / run.js

Reruns the given node.js file whenever there's a change in the current directory — avoid alt-tabbing to restart your code

Home Page:https://dtrejo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

runjs --nodejs --debug app.coffee

aadityabhatia opened this issue · comments

runjs does not allow passing debug flags to the coffee parser. In this case, since the second argument is "--nodejs" and not "app.coffee", runjs uses node instead of coffee as the parser, which obviously fails.

Placing the flags after "app.coffee" as follows does not trigger the debugger: runjs app.coffee --nodejs --debug.

Hmm, so if it is .cs, then it needs to pull args out and supply them to node, it seems.

I will be doing a rewrite of this in the coming months, but I don't write CS, so PRs accepted.

Thanks,
D