Skip to content

Custom schemas path won't work #23

@Torrriate

Description

@Torrriate

Any schemas path other than "schemas" will still create the target output folder specified, but will NOT render the respective .html output files there.

I was able to track the problem down to the " rightclick / copy" - script.
Lines 49 to 51 look as follows:

     if (fileSuffix.test(suffix)) {
        clip[docPath] = fs.readFileSync(fullPath, enc);
      }

Before the synchronous file reading operation the object "this.clipboard.files.schemas" contains one schema-path less than after. So somehow this "this.clipboard.files.schemas"-object is getting a local docPath of one of the .json schemas in the "schemas"-folder added at this point, but only if your schemas path is "schemas".
Not so if it is any other custom-path.
Why?

Btw., my jade module is installed globally - if that makes any difference.

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