516488a625
note: we should probably be using a more recent library for this, but there doesn't seem to be any general ones..
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"type" : "project",
|
|
"license" : "GPL-2.0",
|
|
|
|
"repositories" : [
|
|
{
|
|
"type" : "package",
|
|
"package" : {
|
|
"name" : "ifixit/php-akismet",
|
|
"version" : "1.0",
|
|
"source" : {
|
|
"url" : "https://github.com/iFixit/php-akismet.git",
|
|
"type" : "git",
|
|
"reference" : "126b4b9182230678a585338be4cfca24c9129dc9"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
|
|
"require" : {
|
|
"php" : ">=5.4.8",
|
|
|
|
"flexihash/flexihash" : "^2.0.0",
|
|
"ifixit/php-akismet" : "1.*",
|
|
|
|
"bower-asset/jquery" : "1.12.3"
|
|
},
|
|
|
|
"vendor-copy": {
|
|
"vendor/bower-asset/jquery/dist/jquery.js" : "lib/vendor/js/jquery-1.12.3.js",
|
|
"vendor/bower-asset/jquery/dist/jquery.min.js" : "lib/vendor/js/jquery-1.12.3.min.js",
|
|
"vendor/bower-asset/jquery/dist/jquery.min.map" : "lib/vendor/js/jquery-1.12.3.min.map"
|
|
},
|
|
|
|
"scripts": {
|
|
"post-install-cmd" : [
|
|
"php -r \"array_map('copy', array_keys(json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']), json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']);\""
|
|
],
|
|
"post-update-cmd" : [
|
|
"php -r \"array_map('copy', array_keys(json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']), json_decode(file_get_contents('composer.json'), TRUE)['vendor-copy']);\""
|
|
]
|
|
}
|
|
}
|