You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #198 we hard-coded node_modules to be excluded from templates. However in some cases users might want to have pre-optimized node_modules available in lessons. This featue should be opt-in, as most users will likely not need it and configuring such modules can be tricky.
---
type: lesson
template:
name: default
ignoredFiles: [] # Don't ignore any files, e.g. node_modules
---
However this can be tricky as <template-name>.template.json files are built in advance, before metadata is parsed.
Define ignore patterns in .tk-config.json
{
"extends": "../default",
"ignoredFiles": []
}
This would work well for <template-name>.template.json files too, but now exclusion is on template-level and cannot be defined per-lesson/part/chapter.
Is your feature request related to a problem?
In #198 we hard-coded
node_modulesto be excluded from templates. However in some cases users might want to have pre-optimizednode_modulesavailable in lessons. This featue should be opt-in, as most users will likely not need it and configuring such modules can be tricky.Describe the solution you'd like.
Not yet sure which way would be better:
However this can be tricky as
<template-name>.template.jsonfiles are built in advance, before metadata is parsed..tk-config.json{ "extends": "../default", "ignoredFiles": [] }This would work well for
<template-name>.template.jsonfiles too, but now exclusion is on template-level and cannot be defined per-lesson/part/chapter.