Skip to content

Commit

Permalink
feat(playground): add support for grit
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Nov 5, 2024
1 parent b998e81 commit 89a1e33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/playground/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ export function isHtmlFilename(filename: string): boolean {
return filename.endsWith(".html");
}

export function isGritFilename(filename: string): boolean {
return filename.endsWith(".grit");
}

export function isFrameworkTemplateFilename(filename: string): boolean {
return (
isVueFilename(filename) ||
Expand Down Expand Up @@ -310,7 +314,8 @@ export function isValidExtension(filename: string): boolean {
isCssFilename(filename) ||
isGraphqlFilename(filename) ||
isHtmlFilename(filename) ||
isFrameworkTemplateFilename(filename)
isFrameworkTemplateFilename(filename) ||
isGritFilename(filename)
);
}

Expand Down

0 comments on commit 89a1e33

Please sign in to comment.