-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db00cd0
commit ce31e82
Showing
11 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.apps = void 0;var _config = _interopRequireDefault(require("../lib/config"));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
|
||
const cwd = `${__dirname}`; | ||
const name = 'explorer-api'; | ||
const script = 'index.js'; | ||
const { log } = _config.default; | ||
|
||
const conf = { script, name, cwd }; | ||
|
||
if (log && log.dir) { | ||
let { dir } = log; | ||
conf.error_file = `${dir}/${name}-error.log`; | ||
conf.out_file = `${dir}/${name}-out.log`; | ||
} | ||
|
||
|
||
const apps = [conf];exports.apps = apps; | ||
|
||
console.log(apps); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
"use strict";Object.defineProperty(exports, "__esModule", { value: true });exports.apps = exports.paths = void 0; | ||
var _servicesConfig = require("./servicesConfig"); | ||
var _config = _interopRequireDefault(require("../lib/config")); | ||
var _servicesConfig = require("./servicesConfig");function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} | ||
|
||
const scripts = Object.values(_servicesConfig.servicesNames); | ||
|
||
const scriptName = name => `${name}.js`; | ||
|
||
const cwd = `${__dirname}/blocks/`; | ||
const { log } = _config.default; | ||
|
||
const paths = scripts.map(name => cwd + scriptName(name));exports.paths = paths; | ||
|
||
const apps = scripts.map(name => { | ||
let script = scriptName(name); | ||
return { name, script, cwd }; | ||
let conf = { name, script, cwd }; | ||
if (log && log.dir) { | ||
let { dir } = log; | ||
conf.error_file = `${dir}/${name}-error.log`; | ||
conf.out_file = `${dir}/${name}-out.log`; | ||
} | ||
return conf; | ||
});exports.apps = apps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters