Login   Register  
PHP Classes
elePHPant
Icontem

File: project-composer.json

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Manuel Lemos  >  PHP Composer Asset Manager  >  project-composer.json  >  Download  
File: project-composer.json
Role: Auxiliary data
Content type: text/plain
Description: Example root composer.json file for a project that defines assets to be installed by this plugin
Class: PHP Composer Asset Manager
Composer plugin to install JS, CSS and image files
Author: By
Last change: Fixed the formatting of the brackets.
Date: 7 months ago
Size: 1,019 bytes
 

Contents

Class file image Download
{
	"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/"
		}
	]
}