-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (27 loc) · 913 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'use strict';
var cogz = require('./universal/cogzMain');
// Initialize cogz.
var path = require('path');
var fs = require('fs');
var normalizedPath = path.join(__dirname, 'universal');
fs.readdirSync(normalizedPath).forEach(function(file) {
require('./universal/' + file);
});
normalizedPath = path.join(__dirname, 'server');
fs.readdirSync(normalizedPath).forEach(function(file) {
require('./server/' + file);
});
module.exports = cogz;
// var parts = require('./universal/parts');
// // Initialize parts.
// var path = require('path');
// var fs = require('fs');
// var normalizedPath = path.join(__dirname, 'universal');
// fs.readdirSync(normalizedPath).forEach(function(file) {
// require('./universal/' + file);
// });
// normalizedPath = path.join(__dirname, 'server');
// fs.readdirSync(normalizedPath).forEach(function(file) {
// require('./server/' + file);
// });
// module.exports = parts;