From f9e64c182674b54712d4ed3a994dbe3167a9bde1 Mon Sep 17 00:00:00 2001 From: Peter Hough Date: Thu, 6 Aug 2015 14:01:14 +0100 Subject: [PATCH 1/2] Update FileSystem.php Added app/locale path --- src/ModmanGenerator/FileSystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); From c8be6b9cd0f8821e1f24263915d0b3ddf54d53c1 Mon Sep 17 00:00:00 2001 From: Peter Hough Date: Thu, 6 Aug 2015 14:04:08 +0100 Subject: [PATCH 2/2] Update README.md Updated readme --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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 -