-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplates.ts
More file actions
39 lines (33 loc) · 858 Bytes
/
templates.ts
File metadata and controls
39 lines (33 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import pc from 'picocolors';
// this is inspired by both create-wagmi and create-vite CLI tools
type ColorFunc = (str: string | number) => string;
type TemplateVariant = {
name: string;
display: string;
color: ColorFunc;
customCommand?: string;
};
export type Template = {
name: string;
display: string;
color: ColorFunc;
};
// I don't think that we need to use the TemplateVariant approach since our templates are currently flat
// We can integrate this when we support multiple options per each template (and then we'd nest them as variants)
export const templates: readonly Template[] = [
{
name: 'next',
display: 'Next (App Router)',
color: pc.cyan,
},
{
name: 'vite',
display: 'Vite (React)',
color: pc.magenta,
},
{
name: 'remix-vite',
display: 'Remix/Vite)',
color: pc.yellow,
},
];