From 2da554decee1fc5127670d149bb24ef2237aef93 Mon Sep 17 00:00:00 2001 From: BernhardBaumrock Date: Thu, 26 Sep 2024 17:28:42 +0200 Subject: [PATCH] fix: move assets to correct path --- .../{ => install}/assets/livereload.php | 0 .../{ => install}/assets/package.json | 0 .../{ => install}/assets/tailwind.config.js | 0 .../site-rockfrontend/install/finish.php | 11 +++-------- 4 files changed, 3 insertions(+), 8 deletions(-) rename site/assets/backups/export-profile/site-rockfrontend/{ => install}/assets/livereload.php (100%) rename site/assets/backups/export-profile/site-rockfrontend/{ => install}/assets/package.json (100%) rename site/assets/backups/export-profile/site-rockfrontend/{ => install}/assets/tailwind.config.js (100%) diff --git a/site/assets/backups/export-profile/site-rockfrontend/assets/livereload.php b/site/assets/backups/export-profile/site-rockfrontend/install/assets/livereload.php similarity index 100% rename from site/assets/backups/export-profile/site-rockfrontend/assets/livereload.php rename to site/assets/backups/export-profile/site-rockfrontend/install/assets/livereload.php diff --git a/site/assets/backups/export-profile/site-rockfrontend/assets/package.json b/site/assets/backups/export-profile/site-rockfrontend/install/assets/package.json similarity index 100% rename from site/assets/backups/export-profile/site-rockfrontend/assets/package.json rename to site/assets/backups/export-profile/site-rockfrontend/install/assets/package.json diff --git a/site/assets/backups/export-profile/site-rockfrontend/assets/tailwind.config.js b/site/assets/backups/export-profile/site-rockfrontend/install/assets/tailwind.config.js similarity index 100% rename from site/assets/backups/export-profile/site-rockfrontend/assets/tailwind.config.js rename to site/assets/backups/export-profile/site-rockfrontend/install/assets/tailwind.config.js diff --git a/site/assets/backups/export-profile/site-rockfrontend/install/finish.php b/site/assets/backups/export-profile/site-rockfrontend/install/finish.php index 9e28c53..28c6a20 100644 --- a/site/assets/backups/export-profile/site-rockfrontend/install/finish.php +++ b/site/assets/backups/export-profile/site-rockfrontend/install/finish.php @@ -22,24 +22,19 @@ if (!defined("PROCESSWIRE_INSTALL")) die(); /** @var Installer $installer */ +/** @var ProcessWire $wire */ /** @var Pages $pages */ /** @var User $user */ // …and so on for other API variables // copy config files to pw root -wire()->files->copy( +$wire->files->copy( __DIR__ . '/assets/tailwind.config.js', $config->paths->root ); -wire()->files->copy( +$wire->files->copy( __DIR__ . '/assets/package.json', $config->paths->root ); -// copy livereload.php to site folder -wire()->files->copy( - __DIR__ . '/assets/livereload.php', - $config->paths->site -); - $installer->ok('Finished installing site profile');