(type: ArtifactType)
| 64 | |
| 65 | /** The file extension a given artifact type renders to. */ |
| 66 | export function extensionForType(type: ArtifactType): string { |
| 67 | switch (type) { |
| 68 | case 'html': return 'html'; |
| 69 | case 'react': return 'jsx'; |
| 70 | case 'svg': return 'svg'; |
| 71 | case 'markdown': return 'md'; |
| 72 | case 'vue': return 'vue'; |
| 73 | case 'text': return 'txt'; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | /** The canonical entry filename inside a version folder for a type. */ |
| 78 | export function entryFileName(type: ArtifactType): string { |
no outgoing calls
no test coverage detected