-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pharpiler.yml
65 lines (59 loc) · 1.69 KB
/
.pharpiler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
phar: pharpiler.phar
tasks:
- type: add-package
name: cyberspectrum/pharpiler
# include_require: true
# include_requiredev: false
exclude_dependencies:
# - phpcq/all-tasks
include_files: &default_include_files
- "*.php"
- "(LICENSE\\.?.*)"
exclude_files: &default_exclude_files
- "(.*[Tt]ests?\/)"
- "*tests/*.php"
package_override:
cyberspectrum/pharpiler:
include_files:
- *default_include_files
- "%package:cyberspectrum/pharpiler%/bin/pharpiler"
exclude_files:
- *default_exclude_files
- "*/phar/*"
rewrite_paths:
src: /src
symfony/console:
exclude_files:
- *default_exclude_files
- "(Tester\/)"
symfony/dependency-injection:
include_files:
- "*/YamlFileLoader.php"
- "(ParameterBag\/)"
- type: set-stub
stub_file: '%package:cyberspectrum/pharpiler%/phar/stub.php'
- type: composer-autoload
optimize: true
rewrites:
- files:
- '%package:cyberspectrum/pharpiler%/phar/stub.php'
- '%package:cyberspectrum/pharpiler%/bin/pharpiler'
filter:
- type: replace
"@@MIN_PHP_VERSION@@": "5.5"
- type: replace
"@@PHARPILER_VERSION@@": '%version:cyberspectrum/pharpiler%'
- type: warning-time
search: // @@DEV_WARNING_TIME@@
format: define('DEV_WARNING_TIME', @@warning_time@@);
# 30 * 86400 = 2592000
ahead: 2592000
- files:
- '%package:cyberspectrum/pharpiler%/bin/pharpiler'
filter:
- type: replace
"#!/usr/bin/env php\n": ""
# keep this last
- files: "*.php"
filter:
- type: php-strip