Skip to content

Watched pattern.json does not trigger a re-render of its pattern #790

Closed
@bmuenzenmeyer

Description

@bmuenzenmeyer

I am using Pattern Lab Node v3.0.0-alpha.7 on Windows, with Node v8.9.3, using the Gulp Edition.

Found while troubleshooting pattern-lab/edition-node-gulp#119

Expected Behavior

gulp patternlab:serve builds patterns, starts watching files
Editing btn.json to Test Edit should reveal the new value after a render

Actual Behavior

patternlab-pattern-change is emitted, but the file emitted is C:\\src\\edition-node-gulp\\source\\_patterns\\atoms\\buttons\\btn.json which will not map to any file to mark for re-write

Steps to Reproduce

cleanPublic set to false, enabling incremental builds,

btn.mustache

{{ text }}

btn.json

{
  "text": "Test"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions