Files: bfe1cc1971947547bf1a8c0d9facad16ba4eb786 / scripts / build.js
366 bytesRaw
1 | var fs = require('fs') |
2 | var path = require('path') |
3 | |
4 | console.log( |
5 | 'module.exports = {\n' |
6 | + |
7 | fs.readdirSync(path.join(__dirname, process.argv[2])) |
8 | // .filter(function (file) { |
9 | // return file !== '_index.js' && /\.js$/.test(file) |
10 | // }) |
11 | .map(function (file) { |
12 | return ' '+JSON.stringify(file) + ": require('./"+file+"')" |
13 | }).join(',\n') |
14 | + |
15 | '\n}' |
16 | ) |
17 | |
18 | |
19 |
Built with git-ssb-web