.package.json File¶
The .package.json is used for both packages and the root package.
A .package.json is located in the root of the project and has the form:
{
"name": "<vendor>/<name>",
"description": "<description>",
"keywords": [
<keywords>
],
"website": "<website>",
"license": "<license>",
"authors": [
{
"name": "<author-name>",
"email": "<author-email>",
"website": "<author-website>"
}
],
"options": {
<options>
},
"modules": [
<modules>
],
"requires": [
{
"name": "<require-vendor>/<require-name>",
"version": "<require-version>",
"options": {
<require-options>
}
}
],
"assets": [
{
"name": "<asset-vendor>/<asset-name>",
"version": "<asset-version>"
}
],
"install": [
<install>
],
"dev": {
<dev-settings>
}
}
Root Package Required Only¶
The name descriptor is only used in the root package.
vendorWhat vendor is this package from.nameHow is the package called.
Optional¶
descriptionA description of the project.keywordsAn array of strings containing keywords of the project.websitesThe website where the project is hosted.licenseUnder what license this project falls.
modulesA list of modules in the form<vendor>/<name>that get installed or updated when runninginstall-package.
optionsWhat options the project has, and their default values.
author-nameThe name of the author.author-emailThe authors email address.author-websiteThe authors website.
requires¶
require-vendorWhat vendor are we requiring a package from.require-nameHow is the package called.require-versionWhat version do you want.
require-optionsA key-value pairs that defines the default options.
require-override-projectWhat projects are we adding build settings to in this package.require-overridesSpecify a new block of commands that will be appended.
assets¶
asset-vendorWhat vendor are we requiring a asset from.asset-nameHow is the asset called.asset-versionWhat version do you want.
install¶
installa list of files that contain installer commands.
dev¶
devThis section allows you to definerequires,assetsandinstallsections that are executed only when this is the root package. See this for more information.
