[FEATURE] Paths to document root can be specified in composer.json
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-68184-PathsToTypo3cmsPackageAndDocumentRootCanBeSpecifiedInComposerjson.rst
1 ================================================================================================
2 Feature: #68184 - Paths to typo3/cms package and document root can be specified in composer.json
3 ================================================================================================
4
5 Description
6 ===========
7
8 With the new composer installer it is possible to specify the path of the document root
9 and also the path of the typo3/cms package
10
11 It can be specified in the extra section of your composer root package like that:
12
13 .. code-block:: javascript
14
15 {
16 "repositories": [
17 { "type": "composer", "url": "http://composer.typo3.org/" }
18 ],
19 "name": "typo3/cms-base-distribution",
20 "description" : "TYPO3 CMS Base Distribution",
21 "license": "GPL-2.0+",
22 "config": {
23 "vendor-dir": "Packages/Libraries",
24 "bin-dir": "bin"
25 },
26 "require": {
27 "typo3/cms": "dev-master"
28 },
29 "require-dev": {
30 "mikey179/vfsStream": "1.3.*@dev",
31 "phpunit/phpunit": "~4.4.0",
32 "twbs/bootstrap": "3.3.*",
33 "fortawesome/font-awesome": "4.2.*"
34 },
35 "extra": {
36 "typo3/cms": {
37 "cms-package-dir": "{$vendor-dir}/typo3/cms",
38 "web-dir": "web"
39 }
40 }
41 }
42
43
44 Impact
45 ======
46
47 When specifying the configuration like mentioned above, the directory structure of a ``composer install`` will change.