Initial commit.
This commit is contained in:
commit
0335f5aa93
1168 changed files with 261999 additions and 0 deletions
server
20
server/libs.js
Normal file
20
server/libs.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
'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');
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue