Skip to content

Commit

Permalink
Plugin validator should support nunjucks functions
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Nov 17, 2023
1 parent 1fc78df commit 20728dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions __tests__/fixtures/mockPlugins/valid-plugin/functions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// intentionally empty, file must just exist for testing purposes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
}
],
"nunjucksFilters": "/filters.js",
"nunjucksFunctions": "/functions.js",
"templates": [
{
"name": "Step by step navigation page",
Expand All @@ -42,4 +43,4 @@
"maxVersion": "5.5.0"
}
]
}
}
1 change: 1 addition & 0 deletions lib/plugins/plugin-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const knownKeys = [
'nunjucksPaths',
'nunjucksMacros',
'nunjucksFilters',
'nunjucksFunctions',
'sass',
'scripts',
'stylesheets',
Expand Down

0 comments on commit 20728dd

Please sign in to comment.