[BUGFIX] excludeForPackaging: exclude common files/directories 56/43556/5
authorJosef Glatz <jousch@gmail.com>
Fri, 25 Sep 2015 06:47:07 +0000 (08:47 +0200)
committerBenni Mack <benni@typo3.org>
Mon, 28 Sep 2015 05:53:58 +0000 (07:53 +0200)
The following common files/directories must be excluded/included
when exporting an extension through the download button in the
extension manager:

* .htaccess
* .sass-cache
* node_modules
* bower_components

Resolves: #70097
Releases: master
Change-Id: I44f80dcdf49287925cdd50d82d75e7983b07bda7
Reviewed-on: http://review.typo3.org/43556
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Configuration/DefaultConfiguration.php

index cc8dbed..7257d1b 100644 (file)
@@ -508,7 +508,7 @@ return array(
                'allowGlobalInstall' => FALSE,          // Boolean: If set, global extensions in typo3/ext/ are allowed to be installed, updated and deleted etc.
                'allowLocalInstall' => TRUE,            // Boolean: If set, local extensions in typo3conf/ext/ are allowed to be installed, updated and deleted etc.
                'allowSystemInstall' => FALSE,          // Boolean: If set, you can install extensions in the sysext/ dir.
-               'excludeForPackaging' => '(?:\\..*|.*~|.*\\.swp|.*\\.bak)',             // String: List of directories and files which will not be packaged into extensions nor taken into account otherwise by the Extension Manager. Perl regular expression syntax!
+               'excludeForPackaging' => '(?:\\..*(?!htaccess)|.*~|.*\\.swp|.*\\.bak|\\.sass-cache|node_modules|bower_components)',             // String: List of directories and files which will not be packaged into extensions nor taken into account otherwise by the Extension Manager. Perl regular expression syntax!
                'extConf' => array(
                        'saltedpasswords' => serialize(array(
                                'BE.' => array(