{
"name": "project-with-web-assets",
"description": "Sample project that shows how to install assets from a package",
"licence": "proprietary",
"require":
{
"phpclasses/assets": "*",
"jsclasses/fast-content-loader": "*"
},
"extra":
{
"assets":
{
"comment": "the \"require\" entry above must include the phpclasses/assets package",
"comment": "the \"actions\" entry defines default actions for all packages listed below",
"actions":
[
{
"comment": "the \"js-target\" means copy all *.js files to the specified directory",
"js-target": "web/js"
}
],
"comment": "the \"packages\" entry lists all packages and any specific actions",
"packages":
{
"jsclasses/fast-content-loader":
{
"comment": "an \"actions\" entry would define any actions specific to this package"
}
}
}
},
"repositories":
[
{
"type": "composer",
"url": "http://www.phpclasses.org/"
},
{
"type": "composer",
"url": "http://www.jsclasses.org/"
}
]
}
|