Skip to content

Commit 1b06ee8

Browse files
committed
Updated box.json to use compactors and compression to reduce size.
Use box git-version to automatically assign the
1 parent cab1572 commit 1b06ee8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

box.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
2+
"alias": "php-semver-checker.phar",
3+
"compactors": ["Herrera\\Box\\Compactor\\Php"],
4+
"compression": "GZ",
25
"directories": ["src"],
36
"files": ["license.txt"],
47
"finder": [
58
{
69
"name": "*.php",
7-
"exclude": ["tests", "Tests", "phpunit", "mockery"],
10+
"exclude": ["test", "tests", "Tests", "phpunit", "mockery"],
811
"in": "vendor"
912
}
1013
],
14+
"git-version": "package_version",
1115
"main": "bin/php-semver-checker",
1216
"output": "php-semver-checker.phar",
1317
"stub": true

src/PHPSemVerChecker/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class Application extends SymfonyApplication {
99

10-
private static $VERSION = '0.2';
10+
const VERSION = '@package_version@';
1111

1212
private static $logo = ' ____ ______ _______
1313
/ __ \/ ___/ | / / ___/
@@ -18,7 +18,7 @@ class Application extends SymfonyApplication {
1818

1919
public function __construct()
2020
{
21-
parent::__construct('PHP Semantic Versioning Checker by Tom Rochette', static::$VERSION);
21+
parent::__construct('PHP Semantic Versioning Checker by Tom Rochette', self::VERSION);
2222
}
2323

2424
public function getHelp()

0 commit comments

Comments
 (0)