diff --git a/README.md b/README.md index 1ff319f..bfae502 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # modman-generator Simple script which helps generate Magento modman file based upon "git ls-files" command. It's useful on create package with usage of [magento-composer-installer](https://github.com/magento-hackathon/magento-composer-installer). -## Using +## Usage To generate modman file just go to your Magento project root directory and run: modman-generate @@ -16,15 +16,14 @@ It excludes files by masks - README.md - LICENSE -It looking directories by masks: -- app/code/\*/\*/\*/ -(like `app/code/community/Namespace/ModuleName/`) +It is looking for directories by masks: +- app/code/\*/\*/\*/ (like `app/code/community/Namespace/ModuleName/`) - app/design/\*/\*/\*/\*/\*/\*/ (like `app/design/adminhtml/default/default/template/namespace/modulename`) -- lib/\*/ +- app/etc/modules/* +- app/locale/* +- lib/\* -It looks files from directories: -- app/locale/ +It also looks for files from directories: - shell - js - skin - diff --git a/src/ModmanGenerator/FileSystem.php b/src/ModmanGenerator/FileSystem.php index bc487ec..0786c2a 100644 --- a/src/ModmanGenerator/FileSystem.php +++ b/src/ModmanGenerator/FileSystem.php @@ -83,7 +83,7 @@ public function getMatchedPaths() $files = $this->getVcsFiles(); //match directories preg_match_all( - '~app/code/([A-z_]+/){3}|app/etc/modules/[^\n]*|app/design/([^/\n]+/?){6}|(shell|js|skin)/[^\n]+|lib/[A-z]+/~s', + '~app/code/([A-z_]+/){3}|app/locale/[^\n]*|app/etc/modules/[^\n]*|app/design/([^/\n]+/?){6}|(shell|js|skin)/[^\n]+|lib/[A-z]+/~s', $files, $matches ); return array_unique($matches[0]);