Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create missing output directories if not present #109

Open
ctaepper opened this issue Apr 11, 2024 · 1 comment
Open

Create missing output directories if not present #109

ctaepper opened this issue Apr 11, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ctaepper
Copy link

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

@daniel-sc
Copy link
Owner

@ctaepper Thanks for this request! Would you like to make a PR for this?

@daniel-sc daniel-sc added the enhancement New feature or request label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants