From 6d5dfead46bef4f701764b3666661acedc87fc91 Mon Sep 17 00:00:00 2001 From: Alex Rock Ancelet Date: Fri, 24 Aug 2018 09:20:59 +0200 Subject: [PATCH] Add box.json config --- .gitignore | 1 + bin/benchmarker | 2 +- box.json | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 box.json diff --git a/.gitignore b/.gitignore index a4a031f..487b39d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /vendor/ /build/ +/benchmarker.phar diff --git a/bin/benchmarker b/bin/benchmarker index e038ed3..e0b0162 100644 --- a/bin/benchmarker +++ b/bin/benchmarker @@ -15,6 +15,6 @@ $application = new Application('benchmarker', '0.1'); $application->addCommands([ new BenchmarkRunCommand(getcwd()), new BenchmarkCreateCommand(getcwd()), - new BenchmarkParallelizeCommand(getcwd(), __FILE__), + new BenchmarkParallelizeCommand(getcwd(), $_SERVER['argv'][0]), ]); $application->run(new ArgvInput()); diff --git a/box.json b/box.json new file mode 100644 index 0000000..63dbace --- /dev/null +++ b/box.json @@ -0,0 +1,34 @@ +{ + "alias": "benchmarker.phar", + "directories": [ + "src/" + ], + "finder": [ + { + "name": "*.php", + "exclude": [ + ".gitignore", + ".md", + "phpunit", + "Tester", + "Tests", + "tests", + "yaml" + ], + "in": "vendor" + } + ], + "compactors": [ + "Herrera\\Box\\Compactor\\Json", + "Herrera\\Box\\Compactor\\Php" + ], + "files": [ + "LICENSE" + ], + "compression": "GZ", + "git-version": "package_version", + "main": "bin/benchmarker", + "output": "benchmarker.phar", + "chmod": "0755", + "stub": true +}