-
Notifications
You must be signed in to change notification settings - Fork 1
Box 2
Kevin Herrera edited this page Aug 16, 2016
·
1 revision
The following is an example build configuration file for Box 2.
# Make the Sqon executable
chmod: 0755
# Filter paths added to the Sqon.
filter:
# Exclude unwanted files.
exclude:
regex:
# Exclude test directories.
- '/File/'
- '/mikey179/'
- '/phpunit/'
- '/Net/'
- '/Tester/'
- '/[Tt]ests/'
- '/yaml/'
# Included wanted files.
include:
name:
# Include licenses.
- 'LICENSE'
path:
# Include the executable.
- 'bin/box'
# Include the schema.
- 'res/schema.json'
# Include the other schema.
- 'src/vendors/herrera-io/phar-update/res/schema.json'
regex:
# Include PHP scripts.
- '/\.php$/'
# Modify the contents of some files.
replace:
files:
# Remove the shebang line from the main script.
'bin/box':
'/^#![^\n\r]+[\n\r]+/m': ''
# The Sqon build configuration.
sqon:
# Enable compression.
compression: GZIP
# Use the executable as the main script.
main: 'bin/box'
# Commit to "box.sqon".
output: 'box.sqon'
# Specify the paths to load in the Sqon.
paths:
- 'bin/box'
- 'src/lib'
- 'src/vendors'
# Load necessary plugins.
plugins:
- class: Sqon\Builder\Plugin\Chmod
- class: Sqon\Builder\Plugin\Filter
- class: Sqon\Builder\Plugin\Replace
# The PHP bootstrap script needs a shebang line.
shebang: '#!/usr/bin/env php'
- Git information placeholders are not replaced.
- Manifest URL is not replaced.