1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 1 1 1 13 12 12 12 12 | /*
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://yuilibrary.com/license/
*/
var fs = require('fs'),
path = require('path');
var files = fs.readdirSync(path.join(__dirname, './tasks/'));
/*jshint forin: false */
files.forEach(function (file) {
if (path.extname(file) === '.js') {
var mod = require('./tasks/' + file), name;
for (name in mod) {
Eif (mod.hasOwnProperty(name)) {
exports[name] = mod[name];
}
}
}
});
|