UNPKG
phenomic
Version:
latest (0.21.3)
0.21.3
0.21.2
0.21.1
0.21.0
0.20.4
0.20.3
0.20.2
0.20.1
0.20.0
0.19.5
0.19.4
0.19.3
0.19.2
0.19.1
0.19.0
0.18.1
0.18.0
0.17.12
0.17.11
0.17.10
0.17.9
0.17.8
0.17.7
0.17.6
0.17.5
0.17.4
0.17.3
0.17.2
0.17.1
0.17.0
0.16.2
0.16.1
0.16.0
0.15.0
0.14.2
0.14.1
0.14.0
0.13.0
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.0
0.10.2
0.10.1
0.10.0
0.0.0
Modern website generator based on the React and Webpack ecosystem.
phenomic.io
MoOx/phenomic
phenomic
/
src
/
configurator
/
validators
/
devPort.js
16 lines
(14 loc)
•
297 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// @flow
export
default
function
(
{ config, errors } : { config: PhenomicConfig, errors:
Array
<string> }
):
void
{
const
port =
Math
.
trunc
(config.
devPort
)
if
(port >
0
) { config.
devPort
= port }
else
{ errors.
push
(
"`devPort` must be a legal http port number"
) } }