]> BookStack Code Mirror - bookstack/commitdiff
Licensing: Added license gen as composer command 4907/head
authorDan Brown <redacted>
Sun, 24 Mar 2024 11:58:31 +0000 (11:58 +0000)
committerDan Brown <redacted>
Sun, 24 Mar 2024 11:58:31 +0000 (11:58 +0000)
composer.json
dev/licensing/gen-js-licenses
dev/licensing/gen-php-licenses

index 79246b7acb5b648513c70dc2e0e5e0c2d4959d6a..b22c7b44de9ab52ed65291f40a249d6aa9be496c 100644 (file)
         "lint": "phpcs",
         "test": "phpunit",
         "t-reset": "@php artisan test --recreate-databases",
+        "build-licenses": [
+            "@php ./dev/licensing/gen-js-licenses",
+            "@php ./dev/licensing/gen-php-licenses"
+        ],
         "post-autoload-dump": [
             "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
             "@php artisan package:discover --ansi"
index dfb2f6651b0bba868d5e690aec78affe50441c4a..191a16f302fa12e39e815108c606173378ea1876 100644 (file)
@@ -22,7 +22,7 @@ $licenseInfo = implode($outputSeparator, $packageOutput) . "\n";
 file_put_contents($outputPath, $licenseInfo);
 
 echo "License information written to {$outputPath}\n";
-echo implode("\n", getWarnings());
+echo implode("\n", getWarnings()) . "\n";
 
 function packageToOutput(string $packagePath): string
 {
index ed5a21c5aa97f690a98cc46db8a60520d30f5878..79f4c2ff69631244a7c06e3d163540988c31709a 100644 (file)
@@ -19,7 +19,7 @@ $licenseInfo =  implode($outputSeparator, $packageOutput) . "\n";
 file_put_contents($outputPath, $licenseInfo);
 
 echo "License information written to {$outputPath}\n";
-echo implode("\n", getWarnings());
+echo implode("\n", getWarnings()) . "\n";
 
 function packageToOutput(stdClass $package) : string {
     global $rootPath;