use composer to grab jquery
this requires composer-asset-plugin to be globally installed
This commit is contained in:
		
							parent
							
								
									36264d3f6e
								
							
						
					
					
						commit
						baf8aa1b8c
					
				| @ -3,6 +3,25 @@ | |||||||
| 	"license" : "GPL-2.0", | 	"license" : "GPL-2.0", | ||||||
| 
 | 
 | ||||||
| 	"require" : { | 	"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']);\"" | ||||||
|  | 		] | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ date_default_timezone_set('UTC'); | |||||||
| 		<title>Shimmie Installation</title> | 		<title>Shimmie Installation</title> | ||||||
| 		<link rel="shortcut icon" href="favicon.ico" /> | 		<link rel="shortcut icon" href="favicon.ico" /> | ||||||
| 		<link rel='stylesheet' href='lib/shimmie.css' type='text/css'> | 		<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> | 	</head> | ||||||
| 	<body> | 	<body> | ||||||
| <?php if(false) { ?>
 | <?php if(false) { ?>
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user