index.js   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 0

Size

Lines of Code 16
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
wmc 1
c 1
b 0
f 0
nc 1
mnd 1
bc 2
fnc 0
dl 0
loc 16
rs 10
bpm 0
cpm 0
noi 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