ffffng/server/libs.js

25 lines
473 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');
lib('fs', 'graceful-fs');
2014-05-12 20:08:19 +02:00
lib('glob');
lib('moment');
lib('request');
2014-05-12 20:08:19 +02:00
})();