Settings for roc-package-web-app-react-dev
Name
Description
Path
CLI option
Default
Type
Required
clientLoading
The React component to use on the first client load while fetching data, will only be used if some blocking hooks are defined.
build.clientLoading
--build-clientLoading
null
Filepath
No
disableProgressbar
Should the progress bar be disabled for builds.
build.disableProgressbar
--build-disableProgressbar
false
Boolean
No
koaMiddlewares
The koa middlewares to add to the server instance, will be added after the default middlewares.
build.koaMiddlewares
--build-koaMiddlewares
"koa-middlewares.js"
Filepath
No
mode
What mode the application should be built for. Possible values are "dev" and "dist".
build.mode
--build-mode
"dist"
`/^dev
dist$/i`
name
The name of the generated application bundle.
build.name
--build-name
"app"
String / [String]
No
path
The basepath for the application.
build.path
--build-path
"/"
Filepath
No
reducers
The reducers to use if no entry file is given, will use default entry files internally.
build.reducers
--build-reducers
"reducers.js"
Filepath
No
reduxMiddlewares
The middlewares to use if no entry file is given, will use default entry files internally.
build.reduxMiddlewares
--build-reduxMiddlewares
"redux-middlewares.js"
Filepath
No
resources
An array of files to include into the build process.
build.resources
--build-resources
["roc-package-web-app-react/styles/base.css"]
[Filepath]
No
routes
The routes to use if no entry file is given, will use default entry files internally.
build.routes
--build-routes
"routes.js"
Filepath
No
targets
For what targets the code should be built for.
build.targets
--build-targets
["web","node"]
`[/^web
node$/i]`
templateValues
build.templateValues
--build-templateValues
"template-values.js"
Unknown
No
useDefaultKoaMiddlewares
If Roc should use internally defined koa middlewares, please look at the documentation for what middlewares that are included.
build.useDefaultKoaMiddlewares
--build-useDefaultKoaMiddlewares
true
Boolean
No
useDefaultReducers
If Roc should use internally defined reducers, please look at the documentation for what reducers that are included.
build.useDefaultReducers
--build-useDefaultReducers
true
Boolean
No
useDefaultReduxMiddlewares
If Roc should use internally defined middlewares, please look at the documentation for what middlewares that are included.
build.useDefaultReduxMiddlewares
--build-useDefaultReduxMiddlewares
true
Boolean
No
useDefaultRoutes
If Roc should use an internal wrapper around the routes, please look at the documentation for more details.
build.useDefaultRoutes
--build-useDefaultRoutes
true
Boolean
No
Settings for image asset related things.
Name
Description
Path
CLI option
Default
Type
Required
maxSize
The maximum size (in bytes) for base64 encoding an image.
build.assets.images.loadUrl.maxSize
--build-assets-images-loadUrl-maxSize
10000
Integer
No
Name
Description
Path
CLI option
Default
Type
Required
node
The server entry point file.
build.input.node
--build-input-node
null
Filepath
No
web
The client entry point file.
build.input.web
--build-input-web
null
Filepath
No
Name
Description
Path
CLI option
Default
Type
Required
node
The output directory for the server build.
build.output.node
--build-output-node
"build/server"
Filepath
No
web
The output directory for the client build.
build.output.web
--build-output-web
"build/client"
Filepath
No
Settings for style related things.
Name
Description
Path
CLI option
Default
Type
Required
autoprefixer
Settings for Autoprefixer.
build.style.autoprefixer
--build-style-autoprefixer
[{"browsers":"last 2 version"}]
[{}]
No
modules
If CSS Modules should be enabled.
build.style.modules
--build-style-modules
true
Boolean
No
name
The naming pattern to use for the built style files.
build.style.name
--build-style-name
"[name].[hash].css"
Unknown
No
Name
Description
Path
CLI option
Default
Type
Required
a11y
If A11Y validation should be active. Currently it´s suggested to not enable reduxDevtools with this.
dev.a11y
--dev-a11y
false
Boolean
No
debug
Filter for debug messages that should be shown during development, see https://npmjs.com/package/debug .
dev.debug
--dev-debug
"roc:*"
String
No
host
The host to use during development, will be automatically defined if left empty.
dev.host
--dev-host
null
String
No
port
Port for the dev server.
dev.port
--dev-port
3001
Integer
No
watch
Files/folders that should trigger a restart of the server.
dev.watch
--dev-watch
["roc.config.js","config/"]
Filepath / [Filepath]
No
Settings for Browsersync.
Name
Description
Path
CLI option
Default
Type
Required
enabled
If Browsersync should be enabled.
dev.browsersync.enabled
--dev-browsersync-enabled
true
Boolean
No
open
If Browsersync should open when the server is ready.
dev.browsersync.open
--dev-browsersync-open
true
Boolean
No
port
The port that Browsersync should start on, should be a range of at least 2
dev.browsersync.port
--dev-browsersync-port
3030
Integer
No
Name
Description
Path
CLI option
Default
Type
Required
noInfo
If no info should be sent to the console.
dev.devMiddleware.noInfo
--dev-devMiddleware-noInfo
true
Boolean
No
quiet
If nothing should be sent to the console.
dev.devMiddleware.quiet
--dev-devMiddleware-quiet
false
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
noInfo
If no info should be sent to the console.
dev.hotMiddleware.noInfo
--dev-hotMiddleware-noInfo
false
Boolean
No
overlay
If a overlay should be shown when an error has occurred.
dev.hotMiddleware.overlay
--dev-hotMiddleware-overlay
true
Boolean
No
quiet
If nothing should be sent to the console.
dev.hotMiddleware.quiet
--dev-hotMiddleware-quiet
false
Boolean
No
reload
If the browser should be reloaded if it fails to hot update the code.
dev.hotMiddleware.reload
--dev-hotMiddleware-reload
false
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
defaultVisible
If the Redux Devtools should be shown by default.
dev.reduxDevtools.defaultVisible
--dev-reduxDevtools-defaultVisible
false
Boolean
No
enabled
If Redux Devtools should be enabled.
dev.reduxDevtools.enabled
--dev-reduxDevtools-enabled
true
Boolean
No
position
Starting position of the Devtools, can be left, right, top or bottom.
dev.reduxDevtools.position
--dev-reduxDevtools-position
"right"
`/^left
right
positionKey
The key that should change position of the Redux Devtools, will be combine with CTRL.
dev.reduxDevtools.positionKey
--dev-reduxDevtools-positionKey
"ctrl-q"
String
No
size
Default size of the Devtools, should be a number between 0 and 1.
dev.reduxDevtools.size
--dev-reduxDevtools-size
0.3
Unknown
No
theme
The theme to use for the Redux Devtools, see https://github.com/gaearon/redux-devtools-themes .
dev.reduxDevtools.theme
--dev-reduxDevtools-theme
"ocean"
String
No
visibilityKey
The key that should toogle the Redux Devtools, will be combine with CTRL.
dev.reduxDevtools.visibilityKey
--dev-reduxDevtools-visibilityKey
"ctrl-h"
String
No
Name
Description
Path
CLI option
Default
Type
Required
collapsed
If the logged actions by Redux Logger should be collapsed by default.
dev.reduxLogger.collapsed
--dev-reduxLogger-collapsed
true
Boolean
No
duration
If Redux Logger should print the duration of each action.
dev.reduxLogger.duration
--dev-reduxLogger-duration
true
Boolean
No
level
The logging level for Redux Logger, can be either warn, error or info.
dev.reduxLogger.level
--dev-reduxLogger-level
"info"
`/^warn
error
timestamp
If Redux Logger should print the timestamp with each action.
dev.reduxLogger.timestamp
--dev-reduxLogger-timestamp
true
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
enabled
If YellowBox should be enabled.
dev.yellowbox.enabled
--dev-yellowbox-enabled
true
Boolean
No
ignore
Array of prefix strings that should be ignored by YellowBox.
dev.yellowbox.ignore
--dev-yellowbox-ignore
["[HMR]","Warning: React attempted to reuse markup in a container"]
[String]
No
Name
Description
Path
CLI option
Default
Type
Required
applicationName
Default application name to use for <title>.
runtime.applicationName
--applicationName
null
String
Yes
applicationNameTemplate
Template to be used for <title>. See https://github.com/nfl/react-helmet .
runtime.applicationNameTemplate
--applicationNameTemplate
null
String
No
configWhitelistProperty
A single property to expose to the client from node-config. Make sure that this property does NOT contain any secrets that should not be exposed to the world.
runtime.configWhitelistProperty
--configWhitelistProperty
"DANGEROUSLY_EXPOSE_TO_CLIENT"
String
No
favicon
Path to the favicon file, specially handled on the server.
runtime.favicon
--favicon
null
String
No
htmlAttributes
Attributes that should be added to the <html> tag.
runtime.htmlAttributes
--htmlAttributes
null
{}
No
link
Link tags to be used in <head>, should be formatted as objects. See https://github.com/nfl/react-helmet .
runtime.link
--link
[{"rel":"icon","href":"favicon.png"}]
[{String}]
No
meta
Meta tags to be used in <head>, should be formatted as objects. see https://github.com/nfl/react-helmet .
runtime.meta
--meta
[{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"}]
[{String}]
No
port
Port for the server to use.
runtime.port
--port
3000
Integer
No
script
Script tags to be used in <head>, should be formatted as objects. See https://github.com/nfl/react-helmet .
runtime.script
--script
null
[{String}]
No
serve
What folder the server should expose.
runtime.serve
--serve
["build/client"]
Filepath / [Filepath]
No
ssr
If server side rendering should be enabled.
runtime.ssr
--ssr
true
Boolean
No
startBundle
Relative path to a bundle to start when calling "start".
runtime.startBundle
--startBundle
"build/server/app.js"
Filepath
No
stats
Path to client stats file from build.
runtime.stats
--stats
"build/client/webpack-stats.json"
Filepath
No
style
Style tags to be used in <head>, should be formatted as objects. See https://github.com/nfl/react-helmet .
runtime.style
--style
null
[{String}]
No
Base tag to be used in , see https://github.com/nfl/react-helmet .
Name
Description
Path
CLI option
Default
Type
Required
href
The document base address from which relative links are made.
runtime.base.href
--base-href
"ROC_PATH"
String
No
target
The browsing context in which the links should open.
runtime.base.target
--base-target
null
String
No
Name
Description
Path
CLI option
Default
Type
Required
client
Filter for debug messages that should be shown for the client, see https://npmjs.com/package/debug .
runtime.debug.client
--debug-client
"roc:*"
String
No
server
Filter for debug messages that should be shown for the server, see https://npmjs.com/package/debug .
runtime.debug.server
--debug-server
"roc:*"
String
No
Name
Description
Path
CLI option
Default
Type
Required
server
What redial hooks that should run on the server and in what order.
runtime.fetch.server
--fetch-server
["fetch"]
[]
No
Name
Description
Path
CLI option
Default
Type
Required
blocking
What redial hooks that should run on the client that blocks route transitions and in what order.
runtime.fetch.client.blocking
--fetch-client-blocking
["fetch"]
[]
No
defer
What redial hooks that should run on the client that should not block route transitions and in what order.
runtime.fetch.client.defer
--fetch-client-defer
["defer"]
[]
No
parallel
If defer hooks should be started at the same time as the blocking ones.
runtime.fetch.client.parallel
--fetch-client-parallel
false
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
cert
The certificate file to use when using HTTPS. If none is provided and if running in dev a file will be provided automatically.
runtime.https.cert
--https-cert
null
Unknown
No
key
The key file to use when using HTTPS. If none is provided and if running in dev a file will be provided automatically.
runtime.https.key
--https-key
null
Unknown
No
port
Port for the server to use for HTTPS. If none is defined it will not launch in HTTPS.
runtime.https.port
--https-port
null
Unknown
No
Settings for how Koa should handle paths.
Name
Description
Path
CLI option
Default
Type
Required
defer
If this should be performed after looking for a file on disk.
runtime.koa.lowercase.defer
--koa-lowercase-defer
true
Boolean
No
enabled
If paths should be transformed to lowercase.
runtime.koa.lowercase.enabled
--koa-lowercase-enabled
true
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
defer
If this should be performed after looking for a file on disk.
runtime.koa.normalize.defer
--koa-normalize-defer
false
Boolean
No
enabled
If paths should be normalized, that is remove extra slashes.
runtime.koa.normalize.enabled
--koa-normalize-enabled
true
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
maxage
Browser cache max-age in milliseconds. Production only.
runtime.koa.staticServe.maxage
--koa-staticServe-maxage
60000
Unknown
No
Name
Description
Path
CLI option
Default
Type
Required
defer
If this should be performed after looking for a file on disk.
runtime.koa.trailingSlashes.defer
--koa-trailingSlashes-defer
true
Boolean
No
enabled
Set to true to enforce trailing slashes, false to remove them and null for no rule.
runtime.koa.trailingSlashes.enabled
--koa-trailingSlashes-enabled
true
Boolean
No
Name
Description
Path
CLI option
Default
Type
Required
name
Name of the template file that will be used. Uses Nunjucks, please see documentation for more info.
runtime.template.name
--template-name
"main.html"
String
No
path
A directory where the template for the application can be found. Will default to internal path.
runtime.template.path
--template-path
null
Filepath
No