ffffng/server/libs.js

24 lines
438 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);
});
}
2016-05-16 13:33:49 +02:00
lib('_', 'lodash');
lib('async');
2014-05-12 20:08:19 +02:00
lib('crypto');
lib('deepExtend', 'deep-extend');
2014-05-12 20:08:19 +02:00
lib('fs');
lib('glob');
lib('moment');
2014-05-12 20:08:19 +02:00
})();