ffffng/server/libs.js
2016-05-16 16:56:29 +02:00

21 lines
401 B
JavaScript

'use strict';
(function () {
var module = angular.module('ffffng');
function lib(name, nodeModule) {
if (!nodeModule) {
nodeModule = name;
}
module.factory(name, function () {
return require(nodeModule);
});
}
lib('_', 'lodash');
lib('crypto');
lib('fs');
lib('glob');
lib('deepExtend', 'deep-extend');
})();