tutorialkit icon indicating copy to clipboard operation
tutorialkit copied to clipboard

feat: add `template.visibleFiles` option

Open AriPerkkio opened this issue 1 year ago • 3 comments

  • Adds template.visibleFiles option that can be used to toggle files from template visible in lessons
  • Example usage: https://github.com/AriPerkkio/tutorial-vite-plugin/pull/15
  • Closes https://github.com/stackblitz/tutorialkit/issues/393

AriPerkkio avatar Jul 24 '24 08:07 AriPerkkio

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Running into https://github.com/stackblitz/tutorialkit/issues/167 here too. When "Solve" is clicked, files from template are shown as empty. Only files in _solution are shown correctly.

~~Need to fix https://github.com/stackblitz/tutorialkit/issues/167 first.~~ ✅

AriPerkkio avatar Jul 24 '24 15:07 AriPerkkio

Tested manually with https://github.com/AriPerkkio/tutorial-vite-plugin/pull/15 - the amount of removed duplicate files is a lot!

As this changes quite a lot how editor's files are resolved, I think we should wait for @Nemikolh or @SamVerschueren to review this next week.

AriPerkkio avatar Jul 30 '24 07:07 AriPerkkio