From 92ae4b10331501d8908afd415ce99e15c8b77a59 Mon Sep 17 00:00:00 2001 From: Olivier Gorzalka Date: Wed, 7 Oct 2026 10:44:02 +0200 Subject: [PATCH] chore: keep pollora-test's template-hierarchy fixtures out of the template --- bin/package-theme.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/bin/package-theme.sh b/bin/package-theme.sh index 17af805..702cb60 100755 --- a/bin/package-theme.sh +++ b/bin/package-theme.sh @@ -31,6 +31,22 @@ if [ ! -d "$SOURCE" ]; then exit 1 fi +# Views the development copy keeps for pollora-test's template-hierarchy tests +# (tests/Feature/Routing/TemplateHierarchyTest.php): they are fixtures, not part +# of the template, so they never leave the development copy. +TEST_FIXTURES=( + resources/views/archive.blade.php + resources/views/author.blade.php + resources/views/category.blade.php + resources/views/search.blade.php + resources/views/single-project.blade.php + resources/views/taxonomy.blade.php +) +FIXTURE_EXCLUDES=() +for fixture in "${TEST_FIXTURES[@]}"; do + FIXTURE_EXCLUDES+=(--exclude="/$fixture") +done + # Sync files echo "Syncing files..." rsync -av --delete \ @@ -44,6 +60,7 @@ rsync -av --delete \ --exclude='/.github/' \ --exclude='/LICENSE' \ --exclude='/license.txt' \ + "${FIXTURE_EXCLUDES[@]}" \ "$SOURCE/" "$TARGET_DIR/" \ --quiet