1
0
Fork 0

Doc fixes

pull/934/head
Jordi Boggiano 2012-07-19 19:44:08 +02:00
parent dfd71b31dc
commit 8bf03aea07
1 changed files with 11 additions and 15 deletions

View File

@ -12,15 +12,13 @@ This is common if your package is intended for a specific framework such as
CakePHP, Drupal or WordPress. Here is an example composer.json file for a CakePHP, Drupal or WordPress. Here is an example composer.json file for a
WordPress theme: WordPress theme:
``` {
{
"name": "you/themename", "name": "you/themename",
"type": "wordpress-theme", "type": "wordpress-theme",
"require": { "require": {
"composer/installers": "*" "composer/installers": "*"
} }
} }
```
Now when your theme is installed with Composer it will be placed into Now when your theme is installed with Composer it will be placed into
`wp-content/themes/themename/` folder. Check the `wp-content/themes/themename/` folder. Check the
@ -33,15 +31,13 @@ Drupal multisite setup where the package should be installed into your sites
subdirectory. Here we are overriding the install path for a module that uses subdirectory. Here we are overriding the install path for a module that uses
composer/installers: composer/installers:
``` {
{
"extra": { "extra": {
"installer-paths": { "installer-paths": {
"sites/example.com/modules/{$name}": ["vendor/package"] "sites/example.com/modules/{$name}": ["vendor/package"]
} }
} }
} }
```
Now the package would be installed to your folder location, rather than the default Now the package would be installed to your folder location, rather than the default
composer/installers determined location. composer/installers determined location.