mirror of
https://github.com/samsonjs/batteries.git
synced 2026-03-25 09:15:46 +00:00
drop and go extensions, no need to update index.js
This commit is contained in:
parent
1ffc31ea90
commit
b9667705d8
1 changed files with 8 additions and 9 deletions
17
lib/index.js
17
lib/index.js
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue