Files: 79737575585dc62349a1a2dc95a1ca4f2558e6c5 / build.js
302 bytesRaw
1 | |
2 | console.log( |
3 | 'module.exports = {\n' |
4 | + |
5 | require('fs').readdirSync(require('path').join(__dirname, 'modules')) |
6 | .filter(function (file) { |
7 | return file !== 'index.js' |
8 | }) |
9 | .map(function (file) { |
10 | return ' '+JSON.stringify(file) + ": require('./"+file+"')" |
11 | }).join(',\n') |
12 | + |
13 | '\n}' |
14 | ) |
15 | |
16 |
Built with git-ssb-web