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