Skip to content

Incremental Builds: Updating global data.json does not appear to rebuild all patterns #638

@bmuenzenmeyer

Description

@bmuenzenmeyer

I am using Pattern Lab Node v2.8.0 on Windows, with Node v4.6.2, using the Gulp Edition.

Expected Behavior
  • Updating _data/data.json causes any patterns using data within to hae changes reflected
Actual Behavior
  • No changes are observed when data changes, despite PL performing a build. It appears as if the dependencyGraph is still reporting patterns as clean under this scenario.
Steps to Reproduce
  • Have a pattern that takes a basic piece of data from the global object defined in _data/data.json
<p>
  {{blurb}}
</p>

  • Build with following data in _data/data.json:
{
  "blurb": "Foobar"
}

See Foobar added within paragraph.

  • Trigger another build.
{
  "blurb": "Foobarbaz"
}
Workaround

Save the file with an arbitrary change, causing it to be dirty and pick up the new data.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions