Skip to content

Commit

Permalink
Merge pull request #1 from JGMAgency/master
Browse files Browse the repository at this point in the history
Added app/locale directory
  • Loading branch information
andkirby committed Aug 6, 2015
2 parents 4a56c79 + c8be6b9 commit 0e27d9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

2 changes: 1 addition & 1 deletion src/ModmanGenerator/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 0e27d9c

Please sign in to comment.