Skip to content

Commit

Permalink
feat: use template.visibleFiles to reduce repetition
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jul 24, 2024
1 parent d757878 commit 07580b1
Show file tree
Hide file tree
Showing 24 changed files with 10 additions and 222 deletions.
4 changes: 3 additions & 1 deletion src/content/tutorial/vite-plugin/replace-plugin/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ lessons:
- transforming-source-code
- summarize-replace-plugin
title: Replace Plugin
template: replace-plugin
template:
name: replace-plugin
visibleFiles: ["/tutorial-example.js"]
---

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
type: lesson
title: Import plugin from file
focus: /vite.config.ts
template:
name: replace-plugin
visibleFiles: []
---

# Vite Replace plugin
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

3 changes: 3 additions & 0 deletions src/content/tutorial/vite-plugin/yaml-plugin/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ lessons:
- processing-yaml-files
- summarize-yaml-plugin
title: YAML Plugin
template:
name: default
visibleFiles: ["/content.yaml", "/index.js"]
---

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/templates/default/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const content = ["Initial content"];
import content from "./content.yaml";

export default content;

0 comments on commit 07580b1

Please sign in to comment.