# 814 Separated service modules from services

This commit is contained in:
Juan Ferrer 2018-12-21 13:40:08 +01:00
parent efe6265b12
commit e17eddf496
106 changed files with 9 additions and 11 deletions

View File

@ -25,6 +25,8 @@ rules:
comma-dangle: 0
bracketSpacing: 0
space-infix-ops: 1
no-invalid-this: 0
space-before-function-paren: [error, never]
prefer-const: 0
curly: [error, multi-or-nest]
indent: [error, 4]

View File

@ -108,7 +108,7 @@ let config = require('./config.json');
for (let key in config)
app.set(key, config[key]);
let servicesDir = `${__dirname}/../..`;
let servicesDir = `${__dirname}/../../modules`;
let modelConfigFiles = [
`${__dirname}/model-config.json`
@ -127,13 +127,13 @@ let bootDirs = [
`${__dirname}/boot`
];
let services = require(`${servicesDir}/services.yml`);
let services = require(`../../services.yml`);
for (let service of services) {
let baseDir = `${servicesDir}/${service}`;
modelConfigFiles.push(`${baseDir}/server/model-config.json`);
modelSources.push(`${baseDir}/common/models`);
mixinDirs.push(`${baseDir}/common/mixins`);
bootDirs.push(`${baseDir}/server/boot`);
modelConfigFiles.push(`${baseDir}/model-config.json`);
modelSources.push(`${baseDir}/models`);
mixinDirs.push(`${baseDir}/mixins`);
bootDirs.push(`${baseDir}/boot`);
}
let models = {};

Some files were not shown because too many files have changed in this diff Show More