mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Improve Composer notes in the readme
`require-dev` is better than `require` for such tool, because it is not needed to be installed on production. `composer update` without specifying vendor libraries as an argument will try to update all dependencies which may not be desired. Related to: https://github.com/andres-montanez/MagallanesSite/pull/3
This commit is contained in:
		
							parent
							
								
									680e4dd804
								
							
						
					
					
						commit
						08a0de9316
					
				@ -14,16 +14,16 @@ and run tasks for that freshly deployed code.
 | 
			
		||||
Simply add the following dependency to your project’s composer.json file:
 | 
			
		||||
 | 
			
		||||
```js
 | 
			
		||||
    "require": {
 | 
			
		||||
    "require-dev": {
 | 
			
		||||
        // ...
 | 
			
		||||
        "andres-montanez/magallanes": "1.0.*"
 | 
			
		||||
        "andres-montanez/magallanes": "~1.0.1"
 | 
			
		||||
        // ...
 | 
			
		||||
    }
 | 
			
		||||
```
 | 
			
		||||
Now tell we update the vendors:
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ php composer update
 | 
			
		||||
$ php composer update andres-montanez/magallanes
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
And finally we can use Magallanes from the vendor's bin:
 | 
			
		||||
@ -35,7 +35,7 @@ $ bin/mage version
 | 
			
		||||
### System-wide installation with composer ###
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
$ composer global require "andres-montanez/magallanes=1.0.*"
 | 
			
		||||
$ composer global require "andres-montanez/magallanes=~1.0.1"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Make sure you have ~/.composer/vendor/bin/ in your path.
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user