Now supports excluding files and dirs

This commit is contained in:
2017-01-10 16:02:09 +01:00
parent 41ad908bc6
commit be93645db9
2 changed files with 35 additions and 4 deletions
+11 -2
View File
@@ -73,8 +73,15 @@ be added through one of the rules in the `include` block.
stub "src/stub.php";
In the future, it will also be possible to exclude files matching specific
patterns.
You can follow the same approach when excluding files with the `exclude` block:
exclude {
dir ".git";
file "DONT-INCLUDE-ME-IN-PHAR";
}
The `dir` rules match against `*/<dirname>/*` while the `file` rule will match
against `*/<filename>`.
## Props
@@ -153,3 +160,5 @@ into a temporary directory before running. But right now **it does nothing**.
them to the archive. This shouldn't be an issue, but if your code depends on
a specific character index in a specific php file, you might want to specify
the `verbatim` option.
* You can specify multiple `props` blocks, f.ex. one containing static values
and another one generate f.ex. build date or git revision.