diff --git a/composer-scripts/post-create-project.php b/composer-scripts/post-create-project.php index fcf8bfc..898f5db 100644 --- a/composer-scripts/post-create-project.php +++ b/composer-scripts/post-create-project.php @@ -62,6 +62,14 @@ replacement: "$projectName", ); +// Replace plugin license keys. +// These are regenerated when viewing the Control Panel +ScriptHelpers::replaceFileText( + filePath: "$cwd/config/project/project.yaml", + pattern: "/ licenseKey: REPLACE[\r\n|\r|\n]/", // Make sure to remove new line too + replacement: "", +); + ScriptHelpers::replaceFileText( filePath: "$cwd/config/project/siteGroups/805d8826-faed-4186-9b88-f509eb9b07e6.yaml", pattern: "/Viget Craft Starter/", @@ -73,3 +81,7 @@ pattern: "/Viget Craft Starter/", replacement: "$projectName", ); + +/** + * Licence keys + */ diff --git a/composer.json b/composer.json index 511dac3..691e2b4 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ "@composer config --unset type", "@composer update --ignore-platform-reqs", "@composer dump-autoload -o", - "rm -rf install-scripts " + "rm -rf composer-scripts" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example.dev', '.env');\"" diff --git a/config/project/project.yaml b/config/project/project.yaml index 1df368a..aeffb25 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -40,22 +40,22 @@ plugins: imager-x: edition: lite enabled: true - licenseKey: EYY9QQALYS4PXKM10T0D9N67 + licenseKey: REPLACE schemaVersion: 4.0.0 navigation: edition: standard enabled: true - licenseKey: ZT0EJAAM7CJWOFKJ45G3LIYY + licenseKey: REPLACE schemaVersion: 2.1.0 retour: edition: standard enabled: true - licenseKey: GZCRRQCSW4G1B3MCWWB9L6K1 + licenseKey: REPLACE schemaVersion: 3.0.12 seomatic: edition: standard enabled: true - licenseKey: 19RIJ06TIUTR4H8RSPARFML0 + licenseKey: REPLACE schemaVersion: 3.0.12 vite: edition: standard