Skip to content
This repository was archived by the owner on May 29, 2021. It is now read-only.
This repository was archived by the owner on May 29, 2021. It is now read-only.

Consider: Optionally modify copied-files #5

Description

@tomasbjerre

Perhaps with a .dictatorconfig.json like:

{
  "adjust": {
    "file": [
      { "xpath": "//...", "value": "new value" },
      { "jsonpath": "$....", "value": "new value" },
      { "content": "whatever string", "value": "new value" }
    ]
  }
}

But this can also be done by refactoring the template-code:

If you need to change whatever.html in your template. You may, for example, refactor it into whatever.html.tmpl and whatever.html.json and have it render to a whatever.html during npm run build. And that does not need to have anything to do with this tool. You may choose to ignore the whatever.html.json in the dictated folder. So that it can be adjusted by users of the dictator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions