-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy patheleventy.ts
84 lines (84 loc) · 1.9 KB
/
eleventy.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Author: Yavko
const completionSpec: Fig.Spec = {
name: "eleventy",
icon: "https://www.11ty.dev/favicon.ico",
description: "Eleventy is a simpler static site generator",
args: {
template: "folders",
},
options: [
{
description: "Show help message and exit",
name: ["-h", "--help"],
},
{
description: "Show program's version number and exit",
name: ["-v", "--version"],
},
{
description: "Don’t print all written files",
name: "--quiet",
},
{
description: "Wait for files to change and automatically rewrite",
name: "--watch",
},
{
description: "Don’t write any files",
name: "--dryrun",
},
{
description: "Input template files",
name: "--input",
args: {
name: "Template File",
template: "filepaths",
},
},
{
description: "Write HTML output to this folder",
name: "--output",
args: {
template: "folders",
},
},
{
description: "Run web server on port and watch them too",
name: "--serve",
dependsOn: ["--port"],
},
{
description: "Run Web Server on specified port",
name: "--port",
args: {
name: "port",
default: "8080",
},
},
{
description: "Whitelist only certain template types",
name: "--formats",
args: {
name: "Template Names Separated by ,",
suggestions: ["md", "html", "ejs"],
},
},
{
description: "Override the eleventy config file path",
name: "--config",
args: {
name: "Config File",
template: "filepaths",
},
},
{
description: "Change all url template filters to use this subdirectory",
name: "--pathprefix",
args: {
name: "Subdirectory",
template: "folders",
},
},
],
};
export default completionSpec;