NodeBB uses custom themes, but expects them to be installed as an npm dependency. And here we have a problem. Who wants to make a npm package for some client's one-off theme? I prefer to version the theme directly in the repo, less confusing for future developers. But only you, reader, may truly judge if this process is preferable. In for a penny, in for a pound. And so it goes…
Read more about How to Fork and Deploy a NodeBB Custom Theme to HerokuNodeJS scripts from the CLI can be difficult to debug. Often, one doesn't want to modify the core processes. I found the easiest way to hit a breakpoint was to create a shell wrapper. But I was worried... would my code have access to stdin and stdout? The answer is yes, scripts called from within scripts have access to stdin and stdout. Call your script from within a shell script. Here's the wrapper script: exec node --inspect-brk=9229 ./myscript.js. You can use whatever port you like…
Read more about Debugging a nodejs cli script with --inspect