]> BookStack Code Mirror - system-cli/commitdiff
Restructured repo to work as it's own project
authorDan Brown <redacted>
Thu, 9 Mar 2023 15:41:18 +0000 (15:41 +0000)
committerDan Brown <redacted>
Thu, 9 Mar 2023 15:41:18 +0000 (15:41 +0000)
20 files changed:
.gitignore
compile.php [moved from scripts/compile.php with 87% similarity]
composer.json [moved from scripts/composer.json with 81% similarity]
composer.lock [moved from scripts/composer.lock with 100% similarity]
run.php [moved from scripts/run with 100% similarity]
src/.gitignore [moved from scripts/.gitignore with 100% similarity]
src/Commands/BackupCommand.php [moved from scripts/Commands/BackupCommand.php with 100% similarity]
src/Commands/CommandError.php [moved from scripts/Commands/CommandError.php with 100% similarity]
src/Commands/InitCommand.php [moved from scripts/Commands/InitCommand.php with 100% similarity]
src/Commands/RestoreCommand.php [moved from scripts/Commands/RestoreCommand.php with 100% similarity]
src/Commands/UpdateCommand.php [moved from scripts/Commands/UpdateCommand.php with 100% similarity]
src/Services/AppLocator.php [moved from scripts/Services/AppLocator.php with 100% similarity]
src/Services/ArtisanRunner.php [moved from scripts/Services/ArtisanRunner.php with 100% similarity]
src/Services/BackupZip.php [moved from scripts/Services/BackupZip.php with 100% similarity]
src/Services/ComposerLocator.php [moved from scripts/Services/ComposerLocator.php with 100% similarity]
src/Services/EnvironmentLoader.php [moved from scripts/Services/EnvironmentLoader.php with 100% similarity]
src/Services/InteractiveConsole.php [moved from scripts/Services/InteractiveConsole.php with 100% similarity]
src/Services/MySqlRunner.php [moved from scripts/Services/MySqlRunner.php with 100% similarity]
src/Services/ProgramRunner.php [moved from scripts/Services/ProgramRunner.php with 100% similarity]
src/Services/RequirementsValidator.php [moved from scripts/Services/RequirementsValidator.php with 100% similarity]

index da0d475b6f7ffcf85e5c60a8d3f3af7f3d2bd798..c2a0e34a1579923fd0d1b51e61da6b73ac979384 100644 (file)
@@ -1,29 +1,14 @@
 /vendor
-/node_modules
-Homestead.yaml
-.env
 .idea
-npm-debug.log
-yarn-error.log
-/public/dist
-/public/plugins
-/public/css
-/public/js
-/public/bower
-/public/build/
-/public/favicon.ico
-/storage/images
-_ide_helper.php
-/storage/debugbar
+*.zip
 .phpstorm.meta.php
-yarn.lock
 /bin
 nbproject
 .buildpath
 .project
 .settings/
-webpack-stats.json
 .phpunit.result.cache
 .DS_Store
-phpstan.neon
-/composer
\ No newline at end of file
+/composer
+*.phar
+/bookstack-system-cli
\ No newline at end of file
similarity index 87%
rename from scripts/compile.php
rename to compile.php
index ff7d16c1f68f9ce7ba295717d1bb2e07678fb125..16f4f0000eec0128b58b177683270b30aa62a895 100644 (file)
@@ -25,12 +25,12 @@ try {
     $phar->startBuffering();
 
     // Create the default stub from main.php entrypoint
-    $defaultStub = $phar->createDefaultStub('run');
+    $defaultStub = $phar->createDefaultStub('run.php');
 
     // Add the rest of the apps files
-    $phar->addFile(__DIR__ . '/run', 'run');
+    $phar->addFile(__DIR__ . '/run.php', 'run.php');
+    $phar->buildFromDirectory(__DIR__, '/src(.*)/');
     $phar->buildFromDirectory(__DIR__, '/vendor(.*)/');
-    $phar->buildFromDirectory(__DIR__, '/Commands(.*)/');
 
     // Customize the stub to add the shebang
     $stub = "#!/usr/bin/env php \n" . $defaultStub;
similarity index 81%
rename from scripts/composer.json
rename to composer.json
index 50c971fdab068a950c80dc4fb51984605200ff18..92504f17f42244928c0b458108126ca646fb1a5a 100644 (file)
@@ -6,8 +6,7 @@
     },
     "autoload": {
         "psr-4": {
-            "Cli\\Commands\\": "Commands/",
-            "Cli\\Services\\": "Services/"
+            "Cli\\": "src/"
         }
     },
     "config": {
similarity index 100%
rename from scripts/composer.lock
rename to composer.lock
similarity index 100%
rename from scripts/run
rename to run.php
similarity index 100%
rename from scripts/.gitignore
rename to src/.gitignore