-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build phar binary file and update build settings for Csv-Blueprint. Create symlink for testing. Update box.json.dist and composer.json.
- Loading branch information
Denis Smet
committed
Mar 10, 2024
1 parent
2b96410
commit a613bf4
Showing
6 changed files
with
140 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"banner" : [ | ||
"JBZoo Toolbox - Csv-Blueprint", | ||
"", | ||
"This file is part of the JBZoo Toolbox project.", | ||
"For the full copyright and license information, please view the LICENSE", | ||
"file that was distributed with this source code.", | ||
"", | ||
"@package Csv-Blueprint", | ||
"@license MIT", | ||
"@copyright Copyright (C) JBZoo.com, All rights reserved.", | ||
"@link https://github.com/JBZoo/Csv-Blueprint" | ||
], | ||
|
||
"output" : "build/csv-blueprint.phar", | ||
|
||
"directories" : ["src"], | ||
"files" : ["csv-blueprint.php"], | ||
"git-version" : "git-version", | ||
|
||
"finder" : [{"in" : "vendor"}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,18 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace JBZoo\CsvBlueprint; | ||
|
||
use JBZoo\Cli\CliApplication; | ||
|
||
\define('PATH_ROOT', __DIR__); | ||
/** | ||
* JBZoo Toolbox - Csv-Blueprint. | ||
* | ||
* This file is part of the JBZoo Toolbox project. | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @license MIT | ||
* @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
* @see https://github.com/JBZoo/Csv-Blueprint | ||
*/ | ||
|
||
$vendorPaths = [ | ||
__DIR__ . '/../../autoload.php', | ||
__DIR__ . '/../vendor/autoload.php', | ||
__DIR__ . '/vendor/autoload.php', | ||
]; | ||
|
||
foreach ($vendorPaths as $file) { | ||
if (\file_exists($file)) { | ||
\define('JBZOO_AUTOLOAD_FILE', $file); | ||
break; | ||
} | ||
} | ||
|
||
require_once JBZOO_AUTOLOAD_FILE; | ||
|
||
\date_default_timezone_set('UTC'); | ||
declare(strict_types=1); | ||
|
||
(new CliApplication('CSV Blueprint', '@git-version@')) | ||
->registerCommandsByPath(PATH_ROOT . '/src/Commands', __NAMESPACE__) | ||
->setLogo( | ||
<<<'EOF' | ||
_____ ______ _ _ _ | ||
/ __ \ | ___ \ | (_) | | | ||
| / \/_____ __ | |_/ / |_ _ ___ _ __ _ __ _ _ __ | |_ | ||
| | / __\ \ / / | ___ \ | | | |/ _ \ '_ \| '__| | '_ \| __| | ||
| \__/\__ \\ V / | |_/ / | |_| | __/ |_) | | | | | | | |_ | ||
\____/___/ \_/ \____/|_|\__,_|\___| .__/|_| |_|_| |_|\__| | ||
| | | ||
|_| | ||
EOF, | ||
) | ||
->run(); | ||
require_once __DIR__ . '/csv-blueprint.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<?php | ||
|
||
/** | ||
* JBZoo Toolbox - Csv-Blueprint. | ||
* | ||
* This file is part of the JBZoo Toolbox project. | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @license MIT | ||
* @copyright Copyright (C) JBZoo.com, All rights reserved. | ||
* @see https://github.com/JBZoo/Csv-Blueprint | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
namespace JBZoo\CsvBlueprint; | ||
|
||
use JBZoo\Cli\CliApplication; | ||
|
||
\define('PATH_ROOT', __DIR__); | ||
|
||
$vendorPaths = [ | ||
__DIR__ . '/../../autoload.php', | ||
__DIR__ . '/../vendor/autoload.php', | ||
__DIR__ . '/vendor/autoload.php', | ||
]; | ||
|
||
foreach ($vendorPaths as $file) { | ||
if (\file_exists($file)) { | ||
\define('JBZOO_AUTOLOAD_FILE', $file); | ||
break; | ||
} | ||
} | ||
|
||
require_once JBZOO_AUTOLOAD_FILE; | ||
|
||
\date_default_timezone_set('UTC'); | ||
|
||
(new CliApplication('CSV Blueprint', '@git-version@')) | ||
->registerCommandsByPath(PATH_ROOT . '/src/Commands', __NAMESPACE__) | ||
->setLogo( | ||
<<<'EOF' | ||
_____ ______ _ _ _ | ||
/ __ \ | ___ \ | (_) | | | ||
| / \/_____ __ | |_/ / |_ _ ___ _ __ _ __ _ _ __ | |_ | ||
| | / __\ \ / / | ___ \ | | | |/ _ \ '_ \| '__| | '_ \| __| | ||
| \__/\__ \\ V / | |_/ / | |_| | __/ |_) | | | | | | | |_ | ||
\____/___/ \_/ \____/|_|\__,_|\___| .__/|_| |_|_| |_|\__| | ||
| | | ||
|_| | ||
EOF, | ||
) | ||
->run(); |