-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #164 from JeroenBoersma/master
Updated docs for devmode
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Configuration parameters | ||
|
||
In the `extra` section of a `composer.json` file you can add some extra configuration parameters. | ||
Here a overview of all available parameters. | ||
|
||
## Project | ||
|
||
- magento-root-dir : `"../relative/path"` [README - root dir](../README.md#install-a-module-in-your-project) | ||
- magento-project : `{"libraryPath": "../relative/path", "libraries": {"vendor/package": "../relative/path", ...}}` | ||
- with-bootstrap-patch : `true|false` [Autoloading](Autoloading.md) | ||
- magento-map-overwrite : `{"vendor/package": {"virtual/path/file.php": "real/path/file.php", ...}, ...}` [Mapping](Mapping.md) | ||
- package-xml : `"path/to/package.xml"` [Mapping Package XML](Mapping.md#mapping-with-packagexml) | ||
|
||
## Deploy | ||
|
||
- magento-deploystrategy : `"copy|symlink|absoluteSymlink|link|none"` [Deploy strategy](Deploy.md) | ||
- magento-deploystrategy-overwrite : `{"vendor/package": "copy|symlink|absoluteSymlink|link|none", ...}` [Deploy overwrite](Deploy.md#overwrite-deploy-method-per-module) | ||
- magento-deploy-sort-priority : `{"vendor/package": 200, ...}` (Deploy sort priority)[Deploy.md#define-order-in-which-you-want-your-magento-packages-deployed] | ||
- magento-deploy-ignore : `{"vendor/package": ["file/to/exclude.php"], ...}` [Deploy ignore files](Deploy.md#prevent-single-files-from-deploy) | ||
- magento-force : `true|false` [Deploy force overwrite](Deploy.md#define-order-in-which-you-want-your-magento-packages-deployed) | ||
- path-mapping-translations : `["old/path/file.txt": "path/new/file.txt"]` | ||
|
||
## Developer | ||
|
||
- skip-suggest-repositories : `true|false` [FAQ - Disable suggestions](FAQ.md#can-i-disable-repository-suggestions) | ||
- auto-append-gitignore : `true|false` [README - gitignore](../README.md#auto-add-files-to-gitignore) | ||
- include-root-package : `true|false` [README - root pacakge](../README.md#include-your-project-in-deployment) | ||
- *-dev : `` [Deveveloper Mode](DevMode.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Dev mode | ||
|
||
Composer supports two modes `--dev` (default) and `--no-dev` (production). | ||
Overwrite any `extra.*` parameter by adding `-dev` to it. | ||
|
||
In dev mode any extra `-dev` variant will overwrite the original. | ||
|
||
The next example: | ||
- will use copy strategy on production and symlink locally | ||
- will only append to .gitignore on dev machines | ||
- will only force on production | ||
|
||
```json | ||
{ | ||
"extra":{ | ||
"magento-root-dir": "htdocs/", | ||
|
||
"magento-deploystrategy": "copy", | ||
"magento-deploystrategy-dev": "symlink", | ||
|
||
"auto-append-gitignore-dev": true, | ||
|
||
"magento-force": true, | ||
"magento-force-dev": false | ||
} | ||
} | ||
``` | ||
|
||
In production run `composer install --no-dev` and all `*-dev` will be ignored. |