Now supports excluding files and dirs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user