When making an Atom package that is a reusable UI widget (such that it is using parts of Atom’s API, so it is not just an ordinary Node package), what is the right way to organize the code?
As the creating packages tutorial explains,
"main" must point to a file that defines
activate(state) and optionally some other methods.
Though How To Speed Up Your Packages recommends reducing
require() statements and whatnot.
So if the whole purpose of my package is to export a reusable component, should I have an
index.coffee with only:
module.exports = activate: (state) ->
and then tell users to do
require('my-module-name/lib/my-widget') or something like that?
Also, should it be
"activationEvents":  in the