rnv.template Schema Definition
The schema defines the following properties:
templateConfig
(object)
Used in renative.template.json
allows you to define template behaviour.
Properties of the templateConfig
object:
name
(string)
version
(string)
disabled
(boolean)
includedPaths
(array)
Defines list of all file/dir paths you want to include in template
The elements of the array must match at least one of the following properties:
(string)
(object)
Properties of the undefined
object:
paths
(array, required)
The object is an array with all elements of the type string
.
engines
(array)
The object is an array with all elements of the type string
.
platforms
(array)
Array list of all supported platforms in current project
The object is an array with all elements of the type string
.
renative_json
(object)
Properties of the renative_json
object:
$schema
(string)
extendsTemplate
(string)
package_json
(object)
Properties of the package_json
object:
dependencies
(object)
devDependencies
peerDependencies
optionalDependencies
name
(string)
version
(string)
browserslist
bootstrapConfig
(object)
Properties of the bootstrapConfig
object:
bootstrapQuestions
(array)
Defines list of custom bootstrap questions
The object is an array with all elements of the type object
.
The array object has the following properties:
options
(array)
The object is an array with all elements of the type object
.
The array object has the following properties:
title
(string, required)
value
(, required)
configProp
(object)
Properties of the configProp
object:
prop
(string, required)
key
(string, required)
type
(string, required)
title
(string, required)
onConfirm
(array)
The object is an array with all elements of the type object
.
The array object has the following properties:
action
(string, required)
prop
(string)
path
(string, required)
rnvNewPatchDependencies
This ensures that the correct version of the npm packages will be used to run the project for the first time after creation
configModifiers
(object)
Properties of the configModifiers
object:
engines
(array, required)
The object is an array with all elements of the type object
.
The array object has the following properties:
name
(string, required)
supportedPlatforms
(, required)
nullifyIfFalse
(boolean)
defaultSelectedPlatforms
Array list of all supported platforms in current project