Compiler angepasst!
This commit is contained in:
parent
a9ed6ca916
commit
d46d8e8463
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
vendor/
|
vendor/
|
||||||
composer.lock
|
composer.lock
|
||||||
.idea/
|
.idea/
|
||||||
*.phar
|
build/
|
||||||
@ -20,11 +20,16 @@ class CompilePlatformCommand extends Command
|
|||||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||||
{
|
{
|
||||||
// Deine Logik für den Compiler
|
// 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 = new Compiler(__DIR__ . "/../../../../");
|
||||||
|
|
||||||
$compiler->addIndexFile("bin/versa");
|
$compiler->addIndexFile("versa");
|
||||||
$compiler->addFile("composer.json");
|
$compiler->addFile("composer.json");
|
||||||
$compiler->addDirectory("src", '!*.php');
|
$compiler->addDirectory("src", '!*.php');
|
||||||
$compiler->addDirectory("vendor");
|
$compiler->addDirectory("vendor");
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . "/../vendor/autoload.php";
|
require_once __DIR__ . "/vendor/autoload.php";
|
||||||
|
|
||||||
(new \VersaDigitale\Platform\Console\VersaCLI())->run();
|
(new \VersaDigitale\Platform\Console\VersaCLI())->run();
|
||||||
Loading…
Reference in New Issue
Block a user