From cdddfe042c78b3497c6cf2564300544799265dc2 Mon Sep 17 00:00:00 2001 From: Nicholas Date: Wed, 3 Apr 2024 12:44:26 +0200 Subject: [PATCH] openpublish --- .gitignore | 3 ++ .gitmodules | 3 ++ .idea/codeStyles/codeStyleConfig.xml | 5 +++ .../runConfigurations/Compile_SASS__local.xml | 17 +++++++ .../Compile_SASS__minimal.xml | 17 +++++++ .../runConfigurations/Compile_Typescript.xml | 17 +++++++ .../Install_Dependencies.xml | 17 +++++++ .idea/runConfigurations/Install_Secrets.xml | 17 +++++++ .idea/runConfigurations/Start_Grav_Server.xml | 17 +++++++ .idea/watcherTasks.xml | 45 +++++++++++++++++++ doppler.yaml | 3 ++ scripts/dependencies.sh | 25 +++++++++++ scripts/secrets.sh | 17 +++++++ user | 1 + 14 files changed, 204 insertions(+) create mode 100644 .gitmodules create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/runConfigurations/Compile_SASS__local.xml create mode 100644 .idea/runConfigurations/Compile_SASS__minimal.xml create mode 100644 .idea/runConfigurations/Compile_Typescript.xml create mode 100644 .idea/runConfigurations/Install_Dependencies.xml create mode 100644 .idea/runConfigurations/Install_Secrets.xml create mode 100644 .idea/runConfigurations/Start_Grav_Server.xml create mode 100644 .idea/watcherTasks.xml create mode 100644 doppler.yaml create mode 100755 scripts/dependencies.sh create mode 100755 scripts/secrets.sh create mode 160000 user diff --git a/.gitignore b/.gitignore index a2a78f5f2..a0f5c724d 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,9 @@ Thumbs.db # phpstorm .idea/* +!.idea/runConfigurations/* +!.idea/codeStyles/* +!.idea/watcherTasks.xml # testing stuff tests/_output/* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..20c01c645 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "user"] + path = user + url = https://github.com/Crabston/grav-skeleton-minimal.git diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 000000000..a55e7a179 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Compile_SASS__local.xml b/.idea/runConfigurations/Compile_SASS__local.xml new file mode 100644 index 000000000..2b9d8024e --- /dev/null +++ b/.idea/runConfigurations/Compile_SASS__local.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Compile_SASS__minimal.xml b/.idea/runConfigurations/Compile_SASS__minimal.xml new file mode 100644 index 000000000..29fa8a3ab --- /dev/null +++ b/.idea/runConfigurations/Compile_SASS__minimal.xml @@ -0,0 +1,17 @@ + + + + diff --git a/.idea/runConfigurations/Compile_Typescript.xml b/.idea/runConfigurations/Compile_Typescript.xml new file mode 100644 index 000000000..66a1eca07 --- /dev/null +++ b/.idea/runConfigurations/Compile_Typescript.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Install_Dependencies.xml b/.idea/runConfigurations/Install_Dependencies.xml new file mode 100644 index 000000000..274c0b0ee --- /dev/null +++ b/.idea/runConfigurations/Install_Dependencies.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Install_Secrets.xml b/.idea/runConfigurations/Install_Secrets.xml new file mode 100644 index 000000000..77bb50fa1 --- /dev/null +++ b/.idea/runConfigurations/Install_Secrets.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Start_Grav_Server.xml b/.idea/runConfigurations/Start_Grav_Server.xml new file mode 100644 index 000000000..cae1b5146 --- /dev/null +++ b/.idea/runConfigurations/Start_Grav_Server.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.idea/watcherTasks.xml b/.idea/watcherTasks.xml new file mode 100644 index 000000000..8b43008d8 --- /dev/null +++ b/.idea/watcherTasks.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doppler.yaml b/doppler.yaml new file mode 100644 index 000000000..bb8b75066 --- /dev/null +++ b/doppler.yaml @@ -0,0 +1,3 @@ +setup: + project: grav-core + config: prd diff --git a/scripts/dependencies.sh b/scripts/dependencies.sh new file mode 100755 index 000000000..c729c544d --- /dev/null +++ b/scripts/dependencies.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# Install vendor packages +composer install + +# Install default plugins +bin/gpm install -y error +bin/gpm install -y markdown-notices +bin/gpm install -y problems + +# Install other plugins +bin/gpm install -y admin +bin/gpm install -y devtools +bin/gpm install -y featherlight +bin/gpm install -y license-manager +bin/gpm install -y lightbox-gallery +bin/gpm install -y youtube +bin/gpm install -y sitemap +bin/gpm install -y private + +# Install shortcode plugins +bin/gpm install -y shortcode-core +bin/gpm install -y shortcode-gallery-plusplus +bin/gpm install -y shortcode-owl-carousel +bin/gpm install -y shortcode-ui diff --git a/scripts/secrets.sh b/scripts/secrets.sh new file mode 100755 index 000000000..0d2cb3775 --- /dev/null +++ b/scripts/secrets.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +# Get Environment Variables +SALT=$(doppler secrets get SALT --plain) +LICENSE_LIGHTBOX_GALLERY=$(doppler secrets get LICENSE_LIGHTBOX_GALLERY --plain) +INTERN_PWD=$(doppler secrets get INTERN_PWD --plain) +DOMAIN_STG=$(doppler secrets get DOMAIN_STG --plain) +DOMAIN_PRD=$(doppler secrets get DOMAIN_PRD --plain) + +# Set Environment Variables in .env.local +rm -f .env.local +touch .env.local +echo "SALT=$SALT" >> .env.local +echo "LICENSE_LIGHTBOX_GALLERY=$LICENSE_LIGHTBOX_GALLERY" >> .env.local +echo "INTERN_PWD=$INTERN_PWD" >> .env.local +echo "DOMAIN_STG=$DOMAIN_STG" >> .env.local +echo "DOMAIN_PRD=$DOMAIN_PRD" >> .env.local diff --git a/user b/user new file mode 160000 index 000000000..cfd705430 --- /dev/null +++ b/user @@ -0,0 +1 @@ +Subproject commit cfd705430642786d31629cc6200a43c94f009ee2