Files: 261718c426b0d5a333dfa4acc00aacf92c5fe394 / exports.js
1218 bytesRaw
1 | const bulk = require('bulk-require') |
2 | const patchcore = require('patchcore') |
3 | delete patchcore.patchcore.message.html.action.reply |
4 | // prune an action we don't want |
5 | |
6 | const configModule = require('./config') |
7 | |
8 | const patchbay = { |
9 | patchbay: { |
10 | about: getModules('about/**/*.js'), |
11 | app: getModules('app/**/*.js'), |
12 | blob: getModules('blob/**/*.js'), |
13 | channel: getModules('channel/**/*.js'), |
14 | contact: getModules('contact/**/*.js'), |
15 | message: getModules('message/**/*.js'), |
16 | router: getModules('router/**/*.js'), |
17 | styles: getModules('styles/**/*.js'), |
18 | sbot: getModules('sbot/**/*.js'), |
19 | |
20 | suggestions: require('patch-suggest'), |
21 | settings: require('patch-settings'), |
22 | drafts: require('patch-drafts'), |
23 | history: require('patch-history') |
24 | } |
25 | } |
26 | |
27 | const plugins = { |
28 | scry: require('patchbay-scry'), |
29 | darkCrystal: require('patchbay-dark-crystal'), |
30 | poll: require('patchbay-poll'), |
31 | inbox: require('patch-inbox'), // TODO needs work |
32 | chess: require('ssb-chess-mithril'), |
33 | book: require('patchbay-book'), |
34 | gatherings: require('patchbay-gatherings') |
35 | } |
36 | |
37 | module.exports = { |
38 | configModule, |
39 | plugins, |
40 | patchbay, |
41 | patchcore |
42 | } |
43 | |
44 | function getModules (path) { |
45 | return bulk(__dirname, [path]) |
46 | } |
47 |
Built with git-ssb-web