modules/index.jsView |
---|
1 | | -module.exports = { |
2 | | - "_screen_view.js": require('./_screen_view.js'), |
3 | | - "about.js": require('./about.js'), |
4 | | - "app.js": require('./app.js'), |
5 | | - "audio-mp3.js": require('./audio-mp3.js'), |
6 | | - "avatar-edit.js": require('./avatar-edit.js'), |
7 | | - "avatar-image.js": require('./avatar-image.js'), |
8 | | - "avatar-profile.js": require('./avatar-profile.js'), |
9 | | - "avatar.js": require('./avatar.js'), |
10 | | - "blob-url.js": require('./blob-url.js'), |
11 | | - "channel.js": require('./channel.js'), |
12 | | - "compose.js": require('./compose.js'), |
13 | | - "crypto.js": require('./crypto.js'), |
14 | | - "feed.js": require('./feed.js'), |
15 | | - "file-input.js": require('./file-input.js'), |
16 | | - "follow.js": require('./follow.js'), |
17 | | - "git.js": require('./git.js'), |
18 | | - "invite.js": require('./invite.js'), |
19 | | - "like.js": require('./like.js'), |
20 | | - "markdown.js": require('./markdown.js'), |
21 | | - "message-confirm.js": require('./message-confirm.js'), |
22 | | - "message-link.js": require('./message-link.js'), |
23 | | - "message-name.js": require('./message-name.js'), |
24 | | - "message.js": require('./message.js'), |
25 | | - "meta-image.js": require('./meta-image.js'), |
26 | | - "music-release-cc.js": require('./music-release-cc.js'), |
27 | | - "music-release.js": require('./music-release.js'), |
28 | | - "names.js": require('./names.js'), |
29 | | - "notifications.js": require('./notifications.js'), |
30 | | - "post.js": require('./post.js'), |
31 | | - "private.js": require('./private.js'), |
32 | | - "public.js": require('./public.js'), |
33 | | - "relationships.js": require('./relationships.js'), |
34 | | - "search-box.js": require('./search-box.js'), |
35 | | - "search.js": require('./search.js'), |
36 | | - "split.js": require('./split.js'), |
37 | | - "suggest-mentions.js": require('./suggest-mentions.js'), |
38 | | - "suggest.js": require('./suggest.js'), |
39 | | - "tabs.js": require('./tabs.js'), |
40 | | - "thread.js": require('./thread.js'), |
41 | | - "timestamp.js": require('./timestamp.js') |
42 | | -} |
| 1 | +var fs = require('fs') |
| 2 | + |
| 3 | +fs.readdirSync(__dirname).forEach(function (e) { |
| 4 | + if(e !== '_index.js') |
| 5 | + exports[e] = require(path.join('./'+e)) |
| 6 | +}) |
| 7 | + |
| 8 | + |