ffffng/server/libs.js

21 lines
367 B
JavaScript
Raw Normal View History

2014-05-12 20:08:19 +02:00
'use strict';
(function () {
var module = angular.module('ffffng');
function lib(name, nodeModule) {
if (!nodeModule) {
nodeModule = name;
}
module.factory(name, function () {
return require(nodeModule);
});
}
lib('_', 'underscore');
lib('crypto');
lib('fs');
lib('glob');
})();