Commit 8435ae7885131874152a7f03cd5055903c5b0906
only load .js files
Dominic Tarr committed on 8/1/2016, 11:54:50 PMParent: 7e6b652a5696469876bec17b9d29a4e649627d76
Files changed
build.js | changed |
modules/index.js | changed |
build.js | ||
---|---|---|
@@ -3,9 +3,9 @@ | ||
3 | 3 | 'module.exports = {\n' |
4 | 4 | + |
5 | 5 | require('fs').readdirSync(require('path').join(__dirname, 'modules')) |
6 | 6 | .filter(function (file) { |
7 | - return file !== '_index.js' | |
7 | + return file !== '_index.js' && /\.js$/.test(file) | |
8 | 8 | }) |
9 | 9 | .map(function (file) { |
10 | 10 | return ' '+JSON.stringify(file) + ": require('./"+file+"')" |
11 | 11 | }).join(',\n') |
Built with git-ssb-web