-
Notifications
You must be signed in to change notification settings - Fork 1
/
templates.ts
54 lines (52 loc) · 1.37 KB
/
templates.ts
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { ProjectTypes } from "@merrymake/detect-project-type";
export type Languages = {
[key: string]: {
long: string;
short: string;
projectType: keyof typeof ProjectTypes;
};
};
export const languages: Languages = {
python: { long: "python", short: "p", projectType: "python" },
csharp: { long: "c#", short: "#", projectType: "csharp" },
java: { long: "java", short: "j", projectType: "gradle" },
typescript: { long: "typescript", short: "t", projectType: "typescript" },
rust: { long: "rust", short: "r", projectType: "rust" },
go: { long: "go", short: "g", projectType: "go" },
javascript: { long: "javascript", short: "¤", projectType: "nodejs" },
};
export const templates: {
[key: string]: {
long: string;
short: string;
text: string;
languages: (keyof typeof languages)[];
};
} = {
basic: {
long: "basic",
short: "b",
text: "initialize with a basic template",
languages: [
"python",
// "csharp",
// "java",
"typescript",
// "rust",
// "go",
// "javascript",
],
},
// web: {
// long: "web",
// short: "w",
// text: "initialize with a webapp/website template",
// languages: ["typescript"],
// },
// service: {
// long: "service",
// short: "s",
// text: "initialize with a backend service template",
// languages: ["typescript"],
// },
};