[FEATURE] Paths to document root can be specified in composer.json 29/41329/4
authorHelmut Hummel <helmut.hummel@typo3.org>
Wed, 15 Jul 2015 18:44:20 +0000 (20:44 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 15 Jul 2015 19:57:52 +0000 (21:57 +0200)
With the new composer installer it is possible to specify the path of the document root
and also the path of the typo3/cms package

It can be specified in the extra section of your composer root package like that:

"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
"web-dir": "web"
}
}

Releases: master
Resolves: #68184
Change-Id: I6d8680a141087d1d753a63fad168e35656610495
Reviewed-on: http://review.typo3.org/41329
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
composer.json
typo3/sysext/core/Documentation/Changelog/master/Feature-68184-PathsToTypo3cmsPackageAndDocumentRootCanBeSpecifiedInComposerjson.rst [new file with mode: 0644]

index 9df1eab..35399c8 100644 (file)
@@ -41,7 +41,7 @@
                "symfony/finder": "2.6.9",
                "doctrine/instantiator": "1.0.4",
                "helhum/class-alias-loader": "1.1.9",
-               "typo3/cms-composer-installers": "1.2.1",
+               "typo3/cms-composer-installers": "1.2.2",
                "psr/http-message": "1.0"
        },
        "require-dev": {
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-68184-PathsToTypo3cmsPackageAndDocumentRootCanBeSpecifiedInComposerjson.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-68184-PathsToTypo3cmsPackageAndDocumentRootCanBeSpecifiedInComposerjson.rst
new file mode 100644 (file)
index 0000000..72fd850
--- /dev/null
@@ -0,0 +1,47 @@
+================================================================================================
+Feature: #68184 - Paths to typo3/cms package and document root can be specified in composer.json
+================================================================================================
+
+Description
+===========
+
+With the new composer installer it is possible to specify the path of the document root
+and also the path of the typo3/cms package
+
+It can be specified in the extra section of your composer root package like that:
+
+.. code-block:: javascript
+
+       {
+               "repositories": [
+                       { "type": "composer", "url": "http://composer.typo3.org/" }
+               ],
+               "name": "typo3/cms-base-distribution",
+               "description" : "TYPO3 CMS Base Distribution",
+               "license": "GPL-2.0+",
+               "config": {
+                       "vendor-dir": "Packages/Libraries",
+                       "bin-dir": "bin"
+               },
+               "require": {
+                       "typo3/cms": "dev-master"
+               },
+               "require-dev": {
+                       "mikey179/vfsStream": "1.3.*@dev",
+                       "phpunit/phpunit": "~4.4.0",
+                       "twbs/bootstrap": "3.3.*",
+                       "fortawesome/font-awesome": "4.2.*"
+               },
+               "extra": {
+                       "typo3/cms": {
+                               "cms-package-dir": "{$vendor-dir}/typo3/cms",
+                               "web-dir": "web"
+                       }
+               }
+       }
+
+
+Impact
+======
+
+When specifying the configuration like mentioned above, the directory structure of a ``composer install`` will change.
\ No newline at end of file