mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-09 10:22:51 +03:00
Licensing: Added license gen as composer command
This commit is contained in:
@@ -72,6 +72,10 @@
|
|||||||
"lint": "phpcs",
|
"lint": "phpcs",
|
||||||
"test": "phpunit",
|
"test": "phpunit",
|
||||||
"t-reset": "@php artisan test --recreate-databases",
|
"t-reset": "@php artisan test --recreate-databases",
|
||||||
|
"build-licenses": [
|
||||||
|
"@php ./dev/licensing/gen-js-licenses",
|
||||||
|
"@php ./dev/licensing/gen-php-licenses"
|
||||||
|
],
|
||||||
"post-autoload-dump": [
|
"post-autoload-dump": [
|
||||||
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
|
||||||
"@php artisan package:discover --ansi"
|
"@php artisan package:discover --ansi"
|
||||||
|
@@ -22,7 +22,7 @@ $licenseInfo = implode($outputSeparator, $packageOutput) . "\n";
|
|||||||
file_put_contents($outputPath, $licenseInfo);
|
file_put_contents($outputPath, $licenseInfo);
|
||||||
|
|
||||||
echo "License information written to {$outputPath}\n";
|
echo "License information written to {$outputPath}\n";
|
||||||
echo implode("\n", getWarnings());
|
echo implode("\n", getWarnings()) . "\n";
|
||||||
|
|
||||||
function packageToOutput(string $packagePath): string
|
function packageToOutput(string $packagePath): string
|
||||||
{
|
{
|
||||||
|
@@ -19,7 +19,7 @@ $licenseInfo = implode($outputSeparator, $packageOutput) . "\n";
|
|||||||
file_put_contents($outputPath, $licenseInfo);
|
file_put_contents($outputPath, $licenseInfo);
|
||||||
|
|
||||||
echo "License information written to {$outputPath}\n";
|
echo "License information written to {$outputPath}\n";
|
||||||
echo implode("\n", getWarnings());
|
echo implode("\n", getWarnings()) . "\n";
|
||||||
|
|
||||||
function packageToOutput(stdClass $package) : string {
|
function packageToOutput(stdClass $package) : string {
|
||||||
global $rootPath;
|
global $rootPath;
|
||||||
|
Reference in New Issue
Block a user