Open AriPerkkio opened 3 months ago
I like the idea of defining the pattern in the config file a lot because it is more intuitive with inheritance and this seems to be a property of the template as opposed to be a configuration option of the part / chapter / lesson.
Is your feature request related to a problem?
In https://github.com/stackblitz/tutorialkit/pull/198 we hard-coded
node_modules
to be excluded from templates. However in some cases users might want to have pre-optimizednode_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.Describe the solution you'd like.
Not yet sure which way would be better:
However this can be tricky as
<template-name>.template.json
files are built in advance, before metadata is parsed..tk-config.json
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.