hubot-gitter2
hubot-gitter2 copied to clipboard
require.main.require for hubot is not in packages.json
We could add hubot in devDependencies, but this require.main.require
works when in production (stolen from hubot-slack plugin) and when hubot is not installed globally.
Yeah AFAIR I did not want to add hubot
as any level of dependency so that it could be using the version of the system.
IDK what's best, adding as a dev-dep or doing this require.main
... Maybe we should create another file hubot.coffee
which will be just resolving that dependency, trying to get it from require.main.require
and else falling back to the devDependency
one with normal require
...