Skip to content

Create missing output directories if not present #109

@ctaepper

Description

@ctaepper

Is your feature request related to a problem? Please describe.
for processing reasons, our output directory has the following structure

- src
  - locale
    - en-US/messages.xlf
    - en-GB/messages.xlf
    - de/messages.xlf

I am able to configure this output like this:

    "extract-i18n": {
      "executor": "ng-extract-i18n-merge:ng-extract-i18n-merge",
      "options": {
        "buildTarget": "web-login:build",
        ...
        "outputPath": "apps/web/login/src/locale/en-US",
        "targetFiles": [
          "../de/messages.xlf",
          "../en-GB/messages.xlf"
        ]
      }
    }

However, running this target will only work if the directories src/locale/(en-US|en-GB|de) are present. So I have to create those folders upfront, otherwise the executor will fail

I think it is somewhat related to #34 where targetfiles are created if missing. this feature request would now include also the creation of missing directories

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions