Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 16 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 'use strict' |
||
2 | |||
3 | import chalk from 'chalk' |
||
4 | import logger from 'winston' |
||
5 | import config from './config' |
||
6 | |||
7 | logger.info(`Starting '${chalk.cyan(config.type)}' process`, { pid: process.pid }) |
||
8 | |||
9 | if (config.type === 'app') { |
||
10 | require('./src') |
||
11 | } else { |
||
12 | throw new Error(` |
||
13 | ${chalk.cyan(config.type)} is an unsupported process type. |
||
14 | Use one of: 'app'! |
||
15 | `) |
||
16 | } |
||
17 |