I'd like to be able to add a tip or two for a plugin of mine.
Externalize the tips to a .json or .cson. Load tips from this storage file instead of using module.exports. Add a .add(tip) function to background-tips.coffee, which edits the storage file if the tip is unique (a plugin would add the same tip over and over again, which would clutter the background-tips plugin).
I'd like to be able to add a tip or two for a plugin of mine.
Externalize the tips to a
.json
or.cson
. Load tips from this storage file instead of usingmodule.exports
. Add a.add(tip)
function to background-tips.coffee, which edits the storage file if the tip is unique (a plugin would add the same tip over and over again, which would clutter the background-tips plugin).