drop and go extensions, no need to update index.js

This commit is contained in:
Sami Samhuri 2011-06-05 21:44:29 -07:00
parent 1ffc31ea90
commit b9667705d8

View file

@ -1,18 +1,17 @@
// batteries
// Copyright 2010 - 2011 Sami Samhuri <sami@samhuri.net>
var batteries = module.exports
var fs = require('fs')
, batteries = module.exports
, exts = []
;
ext('array');
ext('date');
ext('fs');
ext('math');
ext('object');
ext('range');
ext('repr');
ext('string');
fs.readdirSync(__dirname).forEach(function (file) {
file = file.replace('.js', '');
if (file !== 'index') {
ext(file);
}
});
function ext(name) {
exts.push(name);