-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Review app code examples using example.options
#4202
Conversation
@romaricpascal This change was missed from 7a2d138 🤦♂️ |
📋 StatsFile sizes
Modules
View stats and visualisations on the review app Action run for e29ffd9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops for missing that at the time, didn't occur to me when reviewing to check for leftover offcurences of example.data
or even \.data(?!set)
(many .dataset
that are not relevant).
Cheers for tidying it up! Don't think there's much risk on moving the code partial inside the macro, unless anyone in @alphagov/design-system-developers was planning to reuse that bit specifically?
@@ -20,6 +20,7 @@ export function renderer(app) { | |||
const env = nunjucksEnv( | |||
[join(paths.app, 'src/views')], | |||
{ | |||
dev: true, // log stack traces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhh, that's going to be handy for debugging! 🥳
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discovered it recently and I'm getting bored of adding it 😆
You get to see Nunjucks stack traces right into global/filter code too
4dce1f0
to
8fa38f4
Compare
We missed a change from `example.data` to `example.options` since the `{% for example in componentFixtures.fixtures %}` loop was in a separate file
The dependency `chokidar` is no longer needed for production
Minor speed up for review app performance
Accidentally missed in 7a2d138
8fa38f4
to
e29ffd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plenty of time to raise concerns about the code.njk
disappearance, nothing raised, let's merge! 🥳
Fixes Markup and Macro code rendering in the review app
Macro options were renamed to
example.data
example.options
in 7a2d138 via #4042We missed this because the
{% for example in componentFixtures.fixtures %}
loop was in a separate fileTo help avoid Nunjucks issues like this in future I've included a few changes such as:
showExamples.njk
for easier debuggingdev: true
to log stack traces etc