use composer to grab jquery

this requires composer-asset-plugin to be globally installed
This commit is contained in:
Daku 2016-05-11 16:50:39 +01:00
parent 36264d3f6e
commit baf8aa1b8c
2 changed files with 21 additions and 2 deletions

View File

@ -3,6 +3,25 @@
"license" : "GPL-2.0",
"require" : {
"php" : ">=5.4.8"
"php" : ">=5.4.8",
"fxp/composer-asset-plugin": "~1.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']);\""
]
}
}

View File

@ -27,7 +27,7 @@ date_default_timezone_set('UTC');
<title>Shimmie Installation</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel='stylesheet' href='lib/shimmie.css' type='text/css'>
<script type="text/javascript" src="lib/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="lib/vendor/js/jquery-1.12.3.min.js"></script>
</head>
<body>
<?php if(false) { ?>