-
| 
         If I understand correctly this documentation we can only merge a global task with a local definition of a project I define the command in a global task # .moon/tasks/tag-vite.yml
tasks:
  cleanup:
    command:
      - pnpm
      - exec
      - rimraf
    local: trueI import the global task with the  # projects/example/moon.yml
tags: [vite]
tasks:
  cleanup:
    args:
      - dist🤔 What can be the strategy if I want to "build" a command trough multiple global tasks definition ? For example, I want to flavour my  The general task, to define the beginning of the command # .moon/tasks.yml
tasks:
  cleanup:
    command:
      - pnpm
      - exec
      - rimraf
    local: trueThe  # .moon/tasks/tag-vite.yml
tasks:
  cleanup:
    args:
      - distThe  # .moon/tasks/tag-vitest.yml
tasks:
  cleanup:
    args:
      - coverageUsage of tags in the project manifest 
 It's currently possible or do I need to fine tune each arguments at project level ?  | 
  
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| 
         Right now this isn't possible because all global (non-project) tasks are shallow merged into a global hash map, then inherited by the project. This basically means that each  This is the same request as this issue: #1840  | 
  
Beta Was this translation helpful? Give feedback.
Right now this isn't possible because all global (non-project) tasks are shallow merged into a global hash map, then inherited by the project. This basically means that each
cleanuptask would overwrite the previous one completely, it's basically amap.insert(key, value).This is the same request as this issue: #1840