From d211e75c26f9af12f4c99f9c9e91b60a0ea79bf8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 27 May 2022 12:08:51 +1000 Subject: [PATCH] Prep for react --- app/Console/Commands/ReactBuilder.php | 88 +++++++++++ resources/views/react/head.blade.php | 207 ++++++++++++++++++++++++++ 2 files changed, 295 insertions(+) create mode 100644 app/Console/Commands/ReactBuilder.php create mode 100644 resources/views/react/head.blade.php diff --git a/app/Console/Commands/ReactBuilder.php b/app/Console/Commands/ReactBuilder.php new file mode 100644 index 000000000000..4081e76846e6 --- /dev/null +++ b/app/Console/Commands/ReactBuilder.php @@ -0,0 +1,88 @@ +getFileName(), '.js')) { + + if(str_contains($file->getFileName(), 'index.')){ + + $includes .= ''."\n"; + + } + else{ + + $includes .= ''."\n"; + } + + } + + + if(str_contains($file->getFileName(), '.css')) { + + $includes .= ''."\n"; + + } + + } + + file_put_contents(resource_path('views/react/head.blade.php'), $includes); + + } + + +} diff --git a/resources/views/react/head.blade.php b/resources/views/react/head.blade.php new file mode 100644 index 000000000000..3c3109448361 --- /dev/null +++ b/resources/views/react/head.blade.php @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +