-
Notifications
You must be signed in to change notification settings - Fork 0
/
vscode.ts
41 lines (39 loc) · 886 Bytes
/
vscode.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
import { Command } from "https://deno.land/x/cliffy@v0.24.2/command/mod.ts";
import { createFile } from "../../util/createFiles.ts";
import { brightBlue } from "../theme.ts";
const files = [
{
path: ".vscode/settings.json",
content: JSON.stringify(
{
"deno.enable": true,
"deno.unstable": true,
},
null,
2,
),
},
{
path: ".vscode/extensions.json",
content: JSON.stringify(
{
"recommendations": [
"denoland.vscode-deno",
],
},
null,
2,
),
},
];
export default new Command()
.name("vscode")
.description("Add vscode integration to your project")
.action(() => {
files.forEach((file) => createFile(file));
console.log(
`Added ${
brightBlue("vscode")
}! Make sure to add the reccomended Deno extension if necessary."`,
);
});