From a78d53a3016833ec241d9cd8e2199b171e6f707b Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 19 Jan 2023 20:10:04 +0000 Subject: [PATCH] Refactor --- .gitignore | 2 +- build-config.php => bin/build-config.php | 4 ++-- box.json.dist | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) rename build-config.php => bin/build-config.php (77%) diff --git a/.gitignore b/.gitignore index 1b6df90..9940a70 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -/build-config.phar +/build/ /vendor/ diff --git a/build-config.php b/bin/build-config.php similarity index 77% rename from build-config.php rename to bin/build-config.php index 2577bb9..782d012 100644 --- a/build-config.php +++ b/bin/build-config.php @@ -6,10 +6,10 @@ use Symfony\Component\Filesystem\Filesystem; use Twig\Environment; use Twig\Loader\FilesystemLoader; -require __DIR__ . '/vendor/autoload.php'; +require __DIR__ . '/../vendor/autoload.php'; $filesystem = new Filesystem(); -$twig = new Environment(new FilesystemLoader([__DIR__.'/templates'])); +$twig = new Environment(new FilesystemLoader([__DIR__.'/../templates'])); $application = new Application(); diff --git a/box.json.dist b/box.json.dist index 3567b71..60dc773 100644 --- a/box.json.dist +++ b/box.json.dist @@ -1,8 +1,11 @@ { + "compression": "GZ", "directories": [ "src", "templates", "vendor" ], - "main": "build-config.php" + "exclude-dev-files": true, + "main": "bin/build-config.php", + "output": "build/build-config" }