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 29, 2024
1 parent d757878 commit ef0b225
Show file tree
Hide file tree
Showing 43 changed files with 18 additions and 357 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 3 additions & 1 deletion src/content/tutorial/vite-plugin/env-plugin/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ lessons:
- env-variables-in-load-hook
- summarize-env-plugin
title: Env Plugin
template: env-plugin
template:
name: env-plugin
visibleFiles: [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.

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.

This file was deleted.

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.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
type: lesson
title: Defining a custom plugin
focus: /vite.config.ts
template:
name: default
visibleFiles: ["/content.yaml", "/index.js", "vite.config.ts"]
---

# Defining a custom 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.

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.

Loading

0 comments on commit ef0b225

Please sign in to comment.