# 814 Separated service modules from services
This commit is contained in:
parent
efe6265b12
commit
e17eddf496
|
@ -25,6 +25,8 @@ rules:
|
||||||
comma-dangle: 0
|
comma-dangle: 0
|
||||||
bracketSpacing: 0
|
bracketSpacing: 0
|
||||||
space-infix-ops: 1
|
space-infix-ops: 1
|
||||||
|
no-invalid-this: 0
|
||||||
|
space-before-function-paren: [error, never]
|
||||||
prefer-const: 0
|
prefer-const: 0
|
||||||
curly: [error, multi-or-nest]
|
curly: [error, multi-or-nest]
|
||||||
indent: [error, 4]
|
indent: [error, 4]
|
||||||
|
|
|
@ -108,7 +108,7 @@ let config = require('./config.json');
|
||||||
for (let key in config)
|
for (let key in config)
|
||||||
app.set(key, config[key]);
|
app.set(key, config[key]);
|
||||||
|
|
||||||
let servicesDir = `${__dirname}/../..`;
|
let servicesDir = `${__dirname}/../../modules`;
|
||||||
|
|
||||||
let modelConfigFiles = [
|
let modelConfigFiles = [
|
||||||
`${__dirname}/model-config.json`
|
`${__dirname}/model-config.json`
|
||||||
|
@ -127,13 +127,13 @@ let bootDirs = [
|
||||||
`${__dirname}/boot`
|
`${__dirname}/boot`
|
||||||
];
|
];
|
||||||
|
|
||||||
let services = require(`${servicesDir}/services.yml`);
|
let services = require(`../../services.yml`);
|
||||||
for (let service of services) {
|
for (let service of services) {
|
||||||
let baseDir = `${servicesDir}/${service}`;
|
let baseDir = `${servicesDir}/${service}`;
|
||||||
modelConfigFiles.push(`${baseDir}/server/model-config.json`);
|
modelConfigFiles.push(`${baseDir}/model-config.json`);
|
||||||
modelSources.push(`${baseDir}/common/models`);
|
modelSources.push(`${baseDir}/models`);
|
||||||
mixinDirs.push(`${baseDir}/common/mixins`);
|
mixinDirs.push(`${baseDir}/mixins`);
|
||||||
bootDirs.push(`${baseDir}/server/boot`);
|
bootDirs.push(`${baseDir}/boot`);
|
||||||
}
|
}
|
||||||
|
|
||||||
let models = {};
|
let models = {};
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue