Skip to content

Commit

Permalink
refactor: copy system dependent modules in build task
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikbehncke committed Aug 20, 2024
1 parent 202e707 commit 67f3b47
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/stubs/plugin/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ tasks:
src: '**'
dest: dist/joomla

- task: copy-module
vars:
SYSTEM: joomla
- task: copy-module-joomla

- task: placeholder-joomla

Expand All @@ -52,9 +50,7 @@ tasks:
src: '*.php'
dest: dist/wordpress

- task: copy-module
vars:
SYSTEM: wordpress
- task: copy-module-wordpress

- task: placeholder-wordpress

Expand All @@ -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
Expand Down

0 comments on commit 67f3b47

Please sign in to comment.