Skip to content

Commit

Permalink
Expose hidden status of component examples in packaged fixtures
Browse files Browse the repository at this point in the history
In order for downstream projects to use the component examples for
rendering as well as for tests, it is useful to know which examples
should be hidden from display since they were designed for tests only.
  • Loading branch information
andymantell committed Nov 20, 2020
1 parent 222c648 commit a59a66c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/gulp/copy-to-destination.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ function generateFixtures (file) {
const fixture = {
name: example.name,
options: example.data,
html: nunjucks.render(componentTemplatePath, { params: example.data }).trim()
html: nunjucks.render(componentTemplatePath, { params: example.data }).trim(),
hidden: example.hidden
}

fixtures.fixtures.push(fixture)
Expand Down

0 comments on commit a59a66c

Please sign in to comment.