mirror of
https://github.com/samsonjs/batteries.git
synced 2026-04-27 15:07:42 +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
|
// 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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue