From 67f3b4728d5e8ba2e5c2b99bac26c90ecaf0aa45 Mon Sep 17 00:00:00 2001 From: hendrikbehncke Date: Tue, 20 Aug 2024 18:46:05 +0200 Subject: [PATCH] refactor: copy system dependent modules in build task --- src/stubs/plugin/Taskfile.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/stubs/plugin/Taskfile.yml b/src/stubs/plugin/Taskfile.yml index 6b519b8..159194f 100644 --- a/src/stubs/plugin/Taskfile.yml +++ b/src/stubs/plugin/Taskfile.yml @@ -29,9 +29,7 @@ tasks: src: '**' dest: dist/joomla - - task: copy-module - vars: - SYSTEM: joomla + - task: copy-module-joomla - task: placeholder-joomla @@ -52,9 +50,7 @@ tasks: src: '*.php' dest: dist/wordpress - - task: copy-module - vars: - SYSTEM: wordpress + - task: copy-module-wordpress - task: placeholder-wordpress @@ -67,13 +63,23 @@ tasks: - defer: task: clear-dist-wordpress - copy-module: + copy-module-joomla: + internal: true + cmds: + - task: utils:copy + vars: + src: modules/** + dest: dist/joomla + ignore: modules/*wordpress*/** + + copy-module-wordpress: internal: true cmds: - task: utils:copy vars: src: modules/** - dest: dist/{{.SYSTEM}} + dest: dist/wordpress + ignore: modules/*joomla*/** placeholder-joomla: internal: true