Using Assets¶
To use an asset, just place an assets
section in your .package.json
in the form:
"assets": [
{
"name": "<vendor>/<name>",
"version": "<version>
}
]
Where
<name>
is the asset we want to download.<version>
specifies the version we want to use.
When you or another project uses an asset, it will be available under
your assets/
folder.
Example¶
The following snippet:
// .package.json
{
"name": "Test/MyProject",
"assets": [
{
"name": "Zefiros-Software/Doxygen",
"version": "@head"
}
]
}
Will download Doxygen into the assets/Test/MyProject/Zefiros-Software/Doxygen/
folder.
Note
More specialised assets can download assets outside your assets
folder.
Note
For more information on how to use the version string, you should check this.
Note
Assets may also be added to the dev
section of the .package.json
.