Compiler angepasst!
This commit is contained in:
parent
a9ed6ca916
commit
d46d8e8463
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
||||
vendor/
|
||||
composer.lock
|
||||
.idea/
|
||||
*.phar
|
||||
build/
|
||||
@ -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");
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
require_once __DIR__ . "/../vendor/autoload.php";
|
||||
require_once __DIR__ . "/vendor/autoload.php";
|
||||
|
||||
(new \VersaDigitale\Platform\Console\VersaCLI())->run();
|
||||
Loading…
Reference in New Issue
Block a user