Compiler angepasst!

This commit is contained in:
Elias Kleppinger 2024-11-07 21:43:36 +01:00
parent a9ed6ca916
commit d46d8e8463
No known key found for this signature in database
GPG Key ID: 1B7744E660C00214
4 changed files with 9 additions and 4 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
vendor/
composer.lock
.idea/
*.phar
build/

View File

View File

@ -20,11 +20,16 @@ class CompilePlatformCommand extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
// Deine Logik für den Compiler
$output->writeln('Starte den Compiler...');
$output->writeln("Kompiliere die Platform...");
// mkdirs
if (!is_dir(__DIR__ . "/../../../../" . 'build')) {
mkdir(__DIR__ . "/../../../../" .'build');
}
$compiler = new Compiler(__DIR__ . "/../../../../");
$compiler->addIndexFile("bin/versa");
$compiler->addIndexFile("versa");
$compiler->addFile("composer.json");
$compiler->addDirectory("src", '!*.php');
$compiler->addDirectory("vendor");

View File

@ -1,4 +1,4 @@
<?php
require_once __DIR__ . "/../vendor/autoload.php";
require_once __DIR__ . "/vendor/autoload.php";
(new \VersaDigitale\Platform\Console\VersaCLI())->run();