ssqch 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/bin/ssqch.js +14 -48
- package/bundled/README.md +1247 -0
- package/bundled/completions/bash +840 -0
- package/bundled/completions/elvish +286 -0
- package/bundled/completions/fish +182 -0
- package/bundled/completions/powershell +318 -0
- package/bundled/completions/zsh +510 -0
- package/bundled/ssqch.d.ts +532 -0
- package/bundled/starter/engines/index.edge +11 -0
- package/bundled/starter/engines/index.ejs +11 -0
- package/bundled/starter/engines/index.hbs +11 -0
- package/bundled/starter/engines/index.liquid +11 -0
- package/bundled/starter/engines/layout.edge +35 -0
- package/bundled/starter/engines/layout.ejs +35 -0
- package/bundled/starter/engines/layout.hbs +35 -0
- package/bundled/starter/engines/layout.liquid +35 -0
- package/bundled/starter/gitignore +3 -0
- package/bundled/starter/jsconfig.json +11 -0
- package/bundled/starter/src/404.md +8 -0
- package/bundled/starter/src/_blueprints/posts.md +5 -0
- package/bundled/starter/src/_data/site.json +4 -0
- package/bundled/starter/src/_includes/layout.jinja +35 -0
- package/bundled/starter/src/index.jinja +11 -0
- package/bundled/starter/src/posts/i-know-what-i-saw.md +11 -0
- package/bundled/starter/src/posts/posts.json +4 -0
- package/bundled/starter/src/posts/raiders-of-the-lost-path.md +27 -0
- package/bundled/starter/src/posts/the-cache-of-the-wild.md +26 -0
- package/bundled/starter/src/posts/the-stump-has-moved.md +15 -0
- package/bundled/starter/src/posts/upon-further-review-a-stump.md +18 -0
- package/bundled/starter/ssqch.config.js +29 -0
- package/bundled/starter-docs/engines/edge/base.edge +41 -0
- package/bundled/starter-docs/engines/edge/containers/details.edge +5 -0
- package/bundled/starter-docs/engines/edge/containers/tab.edge +4 -0
- package/bundled/starter-docs/engines/edge/containers/tabs.edge +5 -0
- package/bundled/starter-docs/engines/edge/doc.edge +59 -0
- package/bundled/starter-docs/engines/edge/hooks/heading.edge +2 -0
- package/bundled/starter-docs/engines/ejs/base.ejs +41 -0
- package/bundled/starter-docs/engines/ejs/containers/details.ejs +5 -0
- package/bundled/starter-docs/engines/ejs/containers/tab.ejs +4 -0
- package/bundled/starter-docs/engines/ejs/containers/tabs.ejs +5 -0
- package/bundled/starter-docs/engines/ejs/doc.ejs +59 -0
- package/bundled/starter-docs/engines/ejs/hooks/heading.ejs +2 -0
- package/bundled/starter-docs/engines/hbs/base.hbs +41 -0
- package/bundled/starter-docs/engines/hbs/containers/details.hbs +5 -0
- package/bundled/starter-docs/engines/hbs/containers/tab.hbs +4 -0
- package/bundled/starter-docs/engines/hbs/containers/tabs.hbs +5 -0
- package/bundled/starter-docs/engines/hbs/doc.hbs +58 -0
- package/bundled/starter-docs/engines/hbs/hooks/heading.hbs +2 -0
- package/bundled/starter-docs/engines/liquid/base.liquid +41 -0
- package/bundled/starter-docs/engines/liquid/containers/details.liquid +5 -0
- package/bundled/starter-docs/engines/liquid/containers/tab.liquid +4 -0
- package/bundled/starter-docs/engines/liquid/containers/tabs.liquid +5 -0
- package/bundled/starter-docs/engines/liquid/doc.liquid +60 -0
- package/bundled/starter-docs/engines/liquid/hooks/heading.liquid +2 -0
- package/bundled/starter-docs/gitignore +4 -0
- package/bundled/starter-docs/src/404.md +12 -0
- package/bundled/starter-docs/src/_blueprints/docs.md +5 -0
- package/bundled/starter-docs/src/_data/nav.yml +10 -0
- package/bundled/starter-docs/src/_data/site.json +5 -0
- package/bundled/starter-docs/src/_includes/base.jinja +41 -0
- package/bundled/starter-docs/src/_includes/containers/details.jinja +5 -0
- package/bundled/starter-docs/src/_includes/containers/tab.jinja +4 -0
- package/bundled/starter-docs/src/_includes/containers/tabs.jinja +5 -0
- package/bundled/starter-docs/src/_includes/doc.jinja +59 -0
- package/bundled/starter-docs/src/_includes/hooks/heading.jinja +2 -0
- package/bundled/starter-docs/src/assets/docs.css +257 -0
- package/bundled/starter-docs/src/assets/docs.js +67 -0
- package/bundled/starter-docs/src/docs/docs.json +1 -0
- package/bundled/starter-docs/src/docs/guides/deploying.md +77 -0
- package/bundled/starter-docs/src/docs/guides/writing.md +65 -0
- package/bundled/starter-docs/src/docs/index.md +29 -0
- package/bundled/starter-docs/src/docs/install.md +42 -0
- package/bundled/starter-docs/src/index.md +13 -0
- package/bundled/starter-docs/ssqch.config.js +40 -0
- package/bundled/trailheads/from-component-frameworks.md +116 -0
- package/bundled/trailheads/from-docusaurus.md +55 -0
- package/bundled/trailheads/from-eleventy.md +140 -0
- package/bundled/trailheads/from-hexo.md +92 -0
- package/bundled/trailheads/from-mkdocs.md +45 -0
- package/bundled/trailheads/from-zola.md +71 -0
- package/lib/assets.js +235 -3
- package/lib/chunk-37KSIVNY.js +29 -0
- package/lib/chunk-3GYLOC6Y.js +1017 -0
- package/lib/chunk-3NYSSA2C.js +22 -0
- package/lib/chunk-3PHCFZEU.js +209 -0
- package/lib/chunk-4Q6WMTER.js +32 -0
- package/lib/chunk-6XYSFG6V.js +4423 -0
- package/lib/chunk-6XYSFG6V.js.LEGAL.txt +41 -0
- package/lib/chunk-AD3HAW3W.js +10 -0
- package/lib/chunk-AMBFWPZ4.js +118 -0
- package/lib/chunk-BOBPVAX2.js +37088 -0
- package/lib/chunk-BOBPVAX2.js.LEGAL.txt +27 -0
- package/lib/chunk-BRK4MXXO.js +565 -0
- package/lib/chunk-C35KIPAR.js +247 -0
- package/lib/chunk-CDEPYU7W.js +25 -0
- package/lib/chunk-CMUWRPSQ.js +113 -0
- package/lib/chunk-DDV6JEC2.js +46 -0
- package/lib/chunk-DHHQKW4F.js +71 -0
- package/lib/chunk-EIT4ZDT4.js +1485 -0
- package/lib/chunk-EZZUUPI4.js +20 -0
- package/lib/chunk-F65YUXZ7.js +334 -0
- package/lib/chunk-FVZ5JBRI.js +115 -0
- package/lib/chunk-FYGE634X.js +44 -0
- package/lib/chunk-GOE4ZSAB.js +75 -0
- package/lib/chunk-GSKVRAHF.js +44 -0
- package/lib/chunk-HR2RU2LY.js +999 -0
- package/lib/chunk-HXCLCXRT.js +20 -0
- package/lib/chunk-I3PS26CI.js +48 -0
- package/lib/chunk-IAFM5ITE.js +11 -0
- package/lib/chunk-IRHRK7XB.js +54 -0
- package/lib/chunk-JRT7TQQP.js +57 -0
- package/lib/chunk-JSPSMIJ2.js +217 -0
- package/lib/chunk-KBGE5MCY.js +175 -0
- package/lib/chunk-N5QTGQ5N.js +207 -0
- package/lib/chunk-NKXEPHRZ.js +136 -0
- package/lib/chunk-NUKCUDC4.js +146 -0
- package/lib/chunk-RI2L3VGO.js +376 -0
- package/lib/chunk-TDGBQNGW.js +251 -0
- package/lib/chunk-TN6EEDX2.js +3935 -0
- package/lib/chunk-TWCVHOKO.js +1229 -0
- package/lib/chunk-UGEGUUBT.js +29 -0
- package/lib/chunk-UU43WIZG.js +29 -0
- package/lib/chunk-VJWQSYEG.js +119 -0
- package/lib/chunk-VVPZ5PDP.js +160 -0
- package/lib/chunk-WMOVCQO6.js +1287 -0
- package/lib/chunk-WP3RPVUM.js +211 -0
- package/lib/chunk-YSH2NMIE.js +502 -0
- package/lib/cli.js +540 -0
- package/lib/elements.js +180 -3
- package/lib/image.js +27 -3
- package/lib/links.js +464 -3
- package/lib/minify.js +69 -3
- package/lib/redirects.js +152 -3
- package/lib/rss.js +139 -3
- package/lib/sass.js +221 -3
- package/lib/sitemap.js +88 -3
- package/lib/ssqch.js +28 -0
- package/package.json +83 -80
- package/src/serve/live.js +174 -0
- package/src/serve/not-found.html +31 -0
- package/types/globals.d.ts +3 -2
- package/types/image.d.ts +7 -3
- package/types/index.d.ts +18 -5
- package/types/links.d.ts +1 -1
- package/types/minify.d.ts +1 -1
- package/types/rss.d.ts +1 -1
- package/types/sass.d.ts +1 -1
- package/wasm/markdown.wasm +0 -0
- package/wasm/minify.wasm +0 -0
- package/wasm/sass.wasm +0 -0
- package/lib/index.js +0 -3
- package/platforms.json +0 -6
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
#compdef ssqch
|
|
2
|
+
|
|
3
|
+
autoload -U is-at-least
|
|
4
|
+
|
|
5
|
+
_ssqch() {
|
|
6
|
+
typeset -A opt_args
|
|
7
|
+
typeset -a _arguments_options
|
|
8
|
+
local ret=1
|
|
9
|
+
|
|
10
|
+
if is-at-least 5.2; then
|
|
11
|
+
_arguments_options=(-s -S -C)
|
|
12
|
+
else
|
|
13
|
+
_arguments_options=(-s -C)
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
local context curcontext="$curcontext" state line
|
|
17
|
+
_arguments "${_arguments_options[@]}" : \
|
|
18
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
19
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
20
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
21
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
22
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
23
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
24
|
+
'-q[Print only warnings and errors]' \
|
|
25
|
+
'--quiet[Print only warnings and errors]' \
|
|
26
|
+
'-v[Also list the slowest images to encode]' \
|
|
27
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
28
|
+
'-h[Print help]' \
|
|
29
|
+
'--help[Print help]' \
|
|
30
|
+
'-V[Print version]' \
|
|
31
|
+
'--version[Print version]' \
|
|
32
|
+
":: :_ssqch_commands" \
|
|
33
|
+
"*::: :->ssqch" \
|
|
34
|
+
&& ret=0
|
|
35
|
+
case $state in
|
|
36
|
+
(ssqch)
|
|
37
|
+
words=($line[1] "${words[@]}")
|
|
38
|
+
(( CURRENT += 1 ))
|
|
39
|
+
curcontext="${curcontext%:*:*}:ssqch-command-$line[1]:"
|
|
40
|
+
case $line[1] in
|
|
41
|
+
(build)
|
|
42
|
+
_arguments "${_arguments_options[@]}" : \
|
|
43
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
44
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
45
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
46
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
47
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
48
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
49
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
50
|
+
'-q[Print only warnings and errors]' \
|
|
51
|
+
'--quiet[Print only warnings and errors]' \
|
|
52
|
+
'-v[Also list the slowest images to encode]' \
|
|
53
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
54
|
+
'-h[Print help]' \
|
|
55
|
+
'--help[Print help]' \
|
|
56
|
+
&& ret=0
|
|
57
|
+
;;
|
|
58
|
+
(serve)
|
|
59
|
+
_arguments "${_arguments_options[@]}" : \
|
|
60
|
+
'-p+[The port to listen on (0 picks a free one)]:PORT:_default' \
|
|
61
|
+
'--port=[The port to listen on (0 picks a free one)]:PORT:_default' \
|
|
62
|
+
'--ready-file=[Write this file once the first build is done\: JSON with the url, port and output folder]:FILE:_files' \
|
|
63
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
64
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
65
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
66
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
67
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
68
|
+
'--built[Serve the output folder as it was built\: no build, no watching, no reload script, gzip on]' \
|
|
69
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
70
|
+
'-q[Print only warnings and errors]' \
|
|
71
|
+
'--quiet[Print only warnings and errors]' \
|
|
72
|
+
'-v[Also list the slowest images to encode]' \
|
|
73
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
74
|
+
'-h[Print help]' \
|
|
75
|
+
'--help[Print help]' \
|
|
76
|
+
&& ret=0
|
|
77
|
+
;;
|
|
78
|
+
(new)
|
|
79
|
+
_arguments "${_arguments_options[@]}" : \
|
|
80
|
+
'--title=[The page'\''s title (default\: from the file'\''s name)]:TITLE:_default' \
|
|
81
|
+
'--date=[The page'\''s date, as it'\''s written in front matter (default\: today)]:DATE:_default' \
|
|
82
|
+
'--blueprint=[The blueprint to use (default\: the page'\''s folder, then \`default\`)]:NAME:_default' \
|
|
83
|
+
'*--set=[Another front matter key, with its value as it'\''s written there (repeatable)]:KEY=VALUE:_default' \
|
|
84
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
85
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
86
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
87
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
88
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
89
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
90
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
91
|
+
'-q[Print only warnings and errors]' \
|
|
92
|
+
'--quiet[Print only warnings and errors]' \
|
|
93
|
+
'-v[Also list the slowest images to encode]' \
|
|
94
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
95
|
+
'-h[Print help]' \
|
|
96
|
+
'--help[Print help]' \
|
|
97
|
+
':path -- The new file, from the input folder (posts/pine-cones.md), or a folder, with --title:_default' \
|
|
98
|
+
&& ret=0
|
|
99
|
+
;;
|
|
100
|
+
(inspect)
|
|
101
|
+
_arguments "${_arguments_options[@]}" : \
|
|
102
|
+
'--field=[One field of its data, in full, with every level that set it (a dotted path reaches inside\: hero.alt)]:NAME:_default' \
|
|
103
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
104
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
105
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
106
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
107
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
108
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
109
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
110
|
+
'-q[Print only warnings and errors]' \
|
|
111
|
+
'--quiet[Print only warnings and errors]' \
|
|
112
|
+
'-v[Also list the slowest images to encode]' \
|
|
113
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
114
|
+
'-h[Print help]' \
|
|
115
|
+
'--help[Print help]' \
|
|
116
|
+
':page -- The page\: its URL (/about/), or its template'\''s path:_default' \
|
|
117
|
+
&& ret=0
|
|
118
|
+
;;
|
|
119
|
+
(completions)
|
|
120
|
+
_arguments "${_arguments_options[@]}" : \
|
|
121
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
122
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
123
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
124
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
125
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
126
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
127
|
+
'-q[Print only warnings and errors]' \
|
|
128
|
+
'--quiet[Print only warnings and errors]' \
|
|
129
|
+
'-v[Also list the slowest images to encode]' \
|
|
130
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
131
|
+
'-h[Print help]' \
|
|
132
|
+
'--help[Print help]' \
|
|
133
|
+
':shell -- bash, zsh, fish, powershell or elvish:(bash elvish fish powershell zsh)' \
|
|
134
|
+
&& ret=0
|
|
135
|
+
;;
|
|
136
|
+
(diff)
|
|
137
|
+
_arguments "${_arguments_options[@]}" : \
|
|
138
|
+
'*--ignore=[Leave out text matching this regular expression before comparing (repeatable)]:REGEX:_default' \
|
|
139
|
+
'*--only=[Only compare files matching this glob, like '\''**/*.html'\'' (repeatable)]:GLOB:_default' \
|
|
140
|
+
'--lines=[Changed lines to show for each file (0 for all)]:LINES:_default' \
|
|
141
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
142
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
143
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
144
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
145
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
146
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
147
|
+
'--exact[Compare bytes\: don'\''t match fingerprinted files or ignore whitespace]' \
|
|
148
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
149
|
+
'-q[Print only warnings and errors]' \
|
|
150
|
+
'--quiet[Print only warnings and errors]' \
|
|
151
|
+
'-v[Also list the slowest images to encode]' \
|
|
152
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
153
|
+
'-h[Print help]' \
|
|
154
|
+
'--help[Print help]' \
|
|
155
|
+
':before -- The build from before the change:_files' \
|
|
156
|
+
':after -- The build from after it:_files' \
|
|
157
|
+
&& ret=0
|
|
158
|
+
;;
|
|
159
|
+
(footprint)
|
|
160
|
+
_arguments "${_arguments_options[@]}" : \
|
|
161
|
+
'--top=[How many of the heaviest pages and files to list (0 for none)]:TOP:_default' \
|
|
162
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
163
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
164
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
165
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
166
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
167
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
168
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
169
|
+
'-q[Print only warnings and errors]' \
|
|
170
|
+
'--quiet[Print only warnings and errors]' \
|
|
171
|
+
'-v[Also list the slowest images to encode]' \
|
|
172
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
173
|
+
'-h[Print help]' \
|
|
174
|
+
'--help[Print help]' \
|
|
175
|
+
'::dir -- The build folder (default\: the site'\''s output folder):_files' \
|
|
176
|
+
&& ret=0
|
|
177
|
+
;;
|
|
178
|
+
(init)
|
|
179
|
+
_arguments "${_arguments_options[@]}" : \
|
|
180
|
+
'--starter=[What to start with\: site (a small blog) or docs (documentation with a sidebar, tabs and search)]:NAME:_default' \
|
|
181
|
+
'--engine=[The template language for the starter'\''s layouts and templates\: jinja, njk, edge, liquid, hbs or ejs]:NAME:_default' \
|
|
182
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
183
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
184
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
185
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
186
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
187
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
188
|
+
'-q[Print only warnings and errors]' \
|
|
189
|
+
'--quiet[Print only warnings and errors]' \
|
|
190
|
+
'-v[Also list the slowest images to encode]' \
|
|
191
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
192
|
+
'-h[Print help]' \
|
|
193
|
+
'--help[Print help]' \
|
|
194
|
+
'::dir -- Where to create it (default\: the current folder):_default' \
|
|
195
|
+
&& ret=0
|
|
196
|
+
;;
|
|
197
|
+
(types)
|
|
198
|
+
_arguments "${_arguments_options[@]}" : \
|
|
199
|
+
'--out=[Where to write it]: :_default' \
|
|
200
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
201
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
202
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
203
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
204
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
205
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
206
|
+
'-q[Print only warnings and errors]' \
|
|
207
|
+
'--quiet[Print only warnings and errors]' \
|
|
208
|
+
'-v[Also list the slowest images to encode]' \
|
|
209
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
210
|
+
'-h[Print help]' \
|
|
211
|
+
'--help[Print help]' \
|
|
212
|
+
&& ret=0
|
|
213
|
+
;;
|
|
214
|
+
(import)
|
|
215
|
+
_arguments "${_arguments_options[@]}" : \
|
|
216
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
217
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
218
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
219
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
220
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
221
|
+
'--write[Make the changes (without it, only list them)]' \
|
|
222
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
223
|
+
'-q[Print only warnings and errors]' \
|
|
224
|
+
'--quiet[Print only warnings and errors]' \
|
|
225
|
+
'-v[Also list the slowest images to encode]' \
|
|
226
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
227
|
+
'-h[Print help]' \
|
|
228
|
+
'--help[Print help]' \
|
|
229
|
+
':generator -- The generator the site is built with\: eleventy or zola:_default' \
|
|
230
|
+
'::dir -- The site'\''s folder (default\: the current folder):_default' \
|
|
231
|
+
&& ret=0
|
|
232
|
+
;;
|
|
233
|
+
(capabilities)
|
|
234
|
+
_arguments "${_arguments_options[@]}" : \
|
|
235
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
236
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
237
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
238
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
239
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
240
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
241
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
242
|
+
'-q[Print only warnings and errors]' \
|
|
243
|
+
'--quiet[Print only warnings and errors]' \
|
|
244
|
+
'-v[Also list the slowest images to encode]' \
|
|
245
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
246
|
+
'-h[Print help]' \
|
|
247
|
+
'--help[Print help]' \
|
|
248
|
+
&& ret=0
|
|
249
|
+
;;
|
|
250
|
+
(docs)
|
|
251
|
+
_arguments "${_arguments_options[@]}" : \
|
|
252
|
+
'--from=[Another generator'\''s words and ssqch'\''s names for them\: eleventy, hugo, jekyll, zola, ...]:GENERATOR:_default' \
|
|
253
|
+
'--format=[text or json]:FORMAT:_default' \
|
|
254
|
+
'--root=[Project root (defaults to the current directory)]:ROOT:_files' \
|
|
255
|
+
'-o+[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
256
|
+
'--output=[Override the output directory (relative to the root)]:OUTPUT:_files' \
|
|
257
|
+
'--base=[Serve the site under a path, like /repo/ (overrides the config'\''s \`base\`)]:BASE:_default' \
|
|
258
|
+
'--env=[development or production (default\: \$SSQCH_ENV, \$NODE_ENV, then production for \`build\` and development for \`serve\`)]:ENV:_default' \
|
|
259
|
+
'--offline[Don'\''t use the network\: \`fetch()\` answers from the copies its \`cache\` option saved]' \
|
|
260
|
+
'-q[Print only warnings and errors]' \
|
|
261
|
+
'--quiet[Print only warnings and errors]' \
|
|
262
|
+
'-v[Also list the slowest images to encode]' \
|
|
263
|
+
'--verbose[Also list the slowest images to encode]' \
|
|
264
|
+
'-h[Print help]' \
|
|
265
|
+
'--help[Print help]' \
|
|
266
|
+
'*::query -- A name (base, imagePlugin, toc, serve), another generator'\''s word (pathPrefix), or words from a heading ("content schemas"):_default' \
|
|
267
|
+
&& ret=0
|
|
268
|
+
;;
|
|
269
|
+
(help)
|
|
270
|
+
_arguments "${_arguments_options[@]}" : \
|
|
271
|
+
":: :_ssqch__subcmd__help_commands" \
|
|
272
|
+
"*::: :->help" \
|
|
273
|
+
&& ret=0
|
|
274
|
+
|
|
275
|
+
case $state in
|
|
276
|
+
(help)
|
|
277
|
+
words=($line[1] "${words[@]}")
|
|
278
|
+
(( CURRENT += 1 ))
|
|
279
|
+
curcontext="${curcontext%:*:*}:ssqch-help-command-$line[1]:"
|
|
280
|
+
case $line[1] in
|
|
281
|
+
(build)
|
|
282
|
+
_arguments "${_arguments_options[@]}" : \
|
|
283
|
+
&& ret=0
|
|
284
|
+
;;
|
|
285
|
+
(serve)
|
|
286
|
+
_arguments "${_arguments_options[@]}" : \
|
|
287
|
+
&& ret=0
|
|
288
|
+
;;
|
|
289
|
+
(new)
|
|
290
|
+
_arguments "${_arguments_options[@]}" : \
|
|
291
|
+
&& ret=0
|
|
292
|
+
;;
|
|
293
|
+
(inspect)
|
|
294
|
+
_arguments "${_arguments_options[@]}" : \
|
|
295
|
+
&& ret=0
|
|
296
|
+
;;
|
|
297
|
+
(completions)
|
|
298
|
+
_arguments "${_arguments_options[@]}" : \
|
|
299
|
+
&& ret=0
|
|
300
|
+
;;
|
|
301
|
+
(diff)
|
|
302
|
+
_arguments "${_arguments_options[@]}" : \
|
|
303
|
+
&& ret=0
|
|
304
|
+
;;
|
|
305
|
+
(footprint)
|
|
306
|
+
_arguments "${_arguments_options[@]}" : \
|
|
307
|
+
&& ret=0
|
|
308
|
+
;;
|
|
309
|
+
(init)
|
|
310
|
+
_arguments "${_arguments_options[@]}" : \
|
|
311
|
+
&& ret=0
|
|
312
|
+
;;
|
|
313
|
+
(types)
|
|
314
|
+
_arguments "${_arguments_options[@]}" : \
|
|
315
|
+
&& ret=0
|
|
316
|
+
;;
|
|
317
|
+
(import)
|
|
318
|
+
_arguments "${_arguments_options[@]}" : \
|
|
319
|
+
&& ret=0
|
|
320
|
+
;;
|
|
321
|
+
(capabilities)
|
|
322
|
+
_arguments "${_arguments_options[@]}" : \
|
|
323
|
+
&& ret=0
|
|
324
|
+
;;
|
|
325
|
+
(docs)
|
|
326
|
+
_arguments "${_arguments_options[@]}" : \
|
|
327
|
+
&& ret=0
|
|
328
|
+
;;
|
|
329
|
+
(help)
|
|
330
|
+
_arguments "${_arguments_options[@]}" : \
|
|
331
|
+
&& ret=0
|
|
332
|
+
;;
|
|
333
|
+
esac
|
|
334
|
+
;;
|
|
335
|
+
esac
|
|
336
|
+
;;
|
|
337
|
+
esac
|
|
338
|
+
;;
|
|
339
|
+
esac
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
(( $+functions[_ssqch_commands] )) ||
|
|
343
|
+
_ssqch_commands() {
|
|
344
|
+
local commands; commands=(
|
|
345
|
+
'build:Build the site (default)' \
|
|
346
|
+
'serve:Build, serve, watch for changes and live-reload the browser' \
|
|
347
|
+
'new:Create a page from a blueprint (a file in _blueprints/), with its title and date filled in' \
|
|
348
|
+
'inspect:Show where a page comes from, and which level of the data cascade set each value' \
|
|
349
|
+
'completions:Print a completion script for your shell, so Tab finishes commands and options' \
|
|
350
|
+
'diff:Compare two builds of a site\: URLs added and removed, and what changed on each page' \
|
|
351
|
+
'footprint:Show how much a build weighs\: its files by kind, and the heaviest pages and files' \
|
|
352
|
+
'init:Create a starter site (config, layout, five posts, data and editor types)' \
|
|
353
|
+
'types:Write ssqch.d.ts, the types editors use for ssqch.config.js' \
|
|
354
|
+
'import:Move a site from another generator\: rename and rewrite what'\''s mechanical, and list the rest' \
|
|
355
|
+
'capabilities:Say what this binary supports\: template languages, modules, config options and optional features' \
|
|
356
|
+
'docs:Read the documentation for this version\: a command, config option, function or topic' \
|
|
357
|
+
'help:Print this message or the help of the given subcommand(s)' \
|
|
358
|
+
)
|
|
359
|
+
_describe -t commands 'ssqch commands' commands "$@"
|
|
360
|
+
}
|
|
361
|
+
(( $+functions[_ssqch__subcmd__build_commands] )) ||
|
|
362
|
+
_ssqch__subcmd__build_commands() {
|
|
363
|
+
local commands; commands=()
|
|
364
|
+
_describe -t commands 'ssqch build commands' commands "$@"
|
|
365
|
+
}
|
|
366
|
+
(( $+functions[_ssqch__subcmd__capabilities_commands] )) ||
|
|
367
|
+
_ssqch__subcmd__capabilities_commands() {
|
|
368
|
+
local commands; commands=()
|
|
369
|
+
_describe -t commands 'ssqch capabilities commands' commands "$@"
|
|
370
|
+
}
|
|
371
|
+
(( $+functions[_ssqch__subcmd__completions_commands] )) ||
|
|
372
|
+
_ssqch__subcmd__completions_commands() {
|
|
373
|
+
local commands; commands=()
|
|
374
|
+
_describe -t commands 'ssqch completions commands' commands "$@"
|
|
375
|
+
}
|
|
376
|
+
(( $+functions[_ssqch__subcmd__diff_commands] )) ||
|
|
377
|
+
_ssqch__subcmd__diff_commands() {
|
|
378
|
+
local commands; commands=()
|
|
379
|
+
_describe -t commands 'ssqch diff commands' commands "$@"
|
|
380
|
+
}
|
|
381
|
+
(( $+functions[_ssqch__subcmd__docs_commands] )) ||
|
|
382
|
+
_ssqch__subcmd__docs_commands() {
|
|
383
|
+
local commands; commands=()
|
|
384
|
+
_describe -t commands 'ssqch docs commands' commands "$@"
|
|
385
|
+
}
|
|
386
|
+
(( $+functions[_ssqch__subcmd__footprint_commands] )) ||
|
|
387
|
+
_ssqch__subcmd__footprint_commands() {
|
|
388
|
+
local commands; commands=()
|
|
389
|
+
_describe -t commands 'ssqch footprint commands' commands "$@"
|
|
390
|
+
}
|
|
391
|
+
(( $+functions[_ssqch__subcmd__help_commands] )) ||
|
|
392
|
+
_ssqch__subcmd__help_commands() {
|
|
393
|
+
local commands; commands=(
|
|
394
|
+
'build:Build the site (default)' \
|
|
395
|
+
'serve:Build, serve, watch for changes and live-reload the browser' \
|
|
396
|
+
'new:Create a page from a blueprint (a file in _blueprints/), with its title and date filled in' \
|
|
397
|
+
'inspect:Show where a page comes from, and which level of the data cascade set each value' \
|
|
398
|
+
'completions:Print a completion script for your shell, so Tab finishes commands and options' \
|
|
399
|
+
'diff:Compare two builds of a site\: URLs added and removed, and what changed on each page' \
|
|
400
|
+
'footprint:Show how much a build weighs\: its files by kind, and the heaviest pages and files' \
|
|
401
|
+
'init:Create a starter site (config, layout, five posts, data and editor types)' \
|
|
402
|
+
'types:Write ssqch.d.ts, the types editors use for ssqch.config.js' \
|
|
403
|
+
'import:Move a site from another generator\: rename and rewrite what'\''s mechanical, and list the rest' \
|
|
404
|
+
'capabilities:Say what this binary supports\: template languages, modules, config options and optional features' \
|
|
405
|
+
'docs:Read the documentation for this version\: a command, config option, function or topic' \
|
|
406
|
+
'help:Print this message or the help of the given subcommand(s)' \
|
|
407
|
+
)
|
|
408
|
+
_describe -t commands 'ssqch help commands' commands "$@"
|
|
409
|
+
}
|
|
410
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__build_commands] )) ||
|
|
411
|
+
_ssqch__subcmd__help__subcmd__build_commands() {
|
|
412
|
+
local commands; commands=()
|
|
413
|
+
_describe -t commands 'ssqch help build commands' commands "$@"
|
|
414
|
+
}
|
|
415
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__capabilities_commands] )) ||
|
|
416
|
+
_ssqch__subcmd__help__subcmd__capabilities_commands() {
|
|
417
|
+
local commands; commands=()
|
|
418
|
+
_describe -t commands 'ssqch help capabilities commands' commands "$@"
|
|
419
|
+
}
|
|
420
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__completions_commands] )) ||
|
|
421
|
+
_ssqch__subcmd__help__subcmd__completions_commands() {
|
|
422
|
+
local commands; commands=()
|
|
423
|
+
_describe -t commands 'ssqch help completions commands' commands "$@"
|
|
424
|
+
}
|
|
425
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__diff_commands] )) ||
|
|
426
|
+
_ssqch__subcmd__help__subcmd__diff_commands() {
|
|
427
|
+
local commands; commands=()
|
|
428
|
+
_describe -t commands 'ssqch help diff commands' commands "$@"
|
|
429
|
+
}
|
|
430
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__docs_commands] )) ||
|
|
431
|
+
_ssqch__subcmd__help__subcmd__docs_commands() {
|
|
432
|
+
local commands; commands=()
|
|
433
|
+
_describe -t commands 'ssqch help docs commands' commands "$@"
|
|
434
|
+
}
|
|
435
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__footprint_commands] )) ||
|
|
436
|
+
_ssqch__subcmd__help__subcmd__footprint_commands() {
|
|
437
|
+
local commands; commands=()
|
|
438
|
+
_describe -t commands 'ssqch help footprint commands' commands "$@"
|
|
439
|
+
}
|
|
440
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__help_commands] )) ||
|
|
441
|
+
_ssqch__subcmd__help__subcmd__help_commands() {
|
|
442
|
+
local commands; commands=()
|
|
443
|
+
_describe -t commands 'ssqch help help commands' commands "$@"
|
|
444
|
+
}
|
|
445
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__import_commands] )) ||
|
|
446
|
+
_ssqch__subcmd__help__subcmd__import_commands() {
|
|
447
|
+
local commands; commands=()
|
|
448
|
+
_describe -t commands 'ssqch help import commands' commands "$@"
|
|
449
|
+
}
|
|
450
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__init_commands] )) ||
|
|
451
|
+
_ssqch__subcmd__help__subcmd__init_commands() {
|
|
452
|
+
local commands; commands=()
|
|
453
|
+
_describe -t commands 'ssqch help init commands' commands "$@"
|
|
454
|
+
}
|
|
455
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__inspect_commands] )) ||
|
|
456
|
+
_ssqch__subcmd__help__subcmd__inspect_commands() {
|
|
457
|
+
local commands; commands=()
|
|
458
|
+
_describe -t commands 'ssqch help inspect commands' commands "$@"
|
|
459
|
+
}
|
|
460
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__new_commands] )) ||
|
|
461
|
+
_ssqch__subcmd__help__subcmd__new_commands() {
|
|
462
|
+
local commands; commands=()
|
|
463
|
+
_describe -t commands 'ssqch help new commands' commands "$@"
|
|
464
|
+
}
|
|
465
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__serve_commands] )) ||
|
|
466
|
+
_ssqch__subcmd__help__subcmd__serve_commands() {
|
|
467
|
+
local commands; commands=()
|
|
468
|
+
_describe -t commands 'ssqch help serve commands' commands "$@"
|
|
469
|
+
}
|
|
470
|
+
(( $+functions[_ssqch__subcmd__help__subcmd__types_commands] )) ||
|
|
471
|
+
_ssqch__subcmd__help__subcmd__types_commands() {
|
|
472
|
+
local commands; commands=()
|
|
473
|
+
_describe -t commands 'ssqch help types commands' commands "$@"
|
|
474
|
+
}
|
|
475
|
+
(( $+functions[_ssqch__subcmd__import_commands] )) ||
|
|
476
|
+
_ssqch__subcmd__import_commands() {
|
|
477
|
+
local commands; commands=()
|
|
478
|
+
_describe -t commands 'ssqch import commands' commands "$@"
|
|
479
|
+
}
|
|
480
|
+
(( $+functions[_ssqch__subcmd__init_commands] )) ||
|
|
481
|
+
_ssqch__subcmd__init_commands() {
|
|
482
|
+
local commands; commands=()
|
|
483
|
+
_describe -t commands 'ssqch init commands' commands "$@"
|
|
484
|
+
}
|
|
485
|
+
(( $+functions[_ssqch__subcmd__inspect_commands] )) ||
|
|
486
|
+
_ssqch__subcmd__inspect_commands() {
|
|
487
|
+
local commands; commands=()
|
|
488
|
+
_describe -t commands 'ssqch inspect commands' commands "$@"
|
|
489
|
+
}
|
|
490
|
+
(( $+functions[_ssqch__subcmd__new_commands] )) ||
|
|
491
|
+
_ssqch__subcmd__new_commands() {
|
|
492
|
+
local commands; commands=()
|
|
493
|
+
_describe -t commands 'ssqch new commands' commands "$@"
|
|
494
|
+
}
|
|
495
|
+
(( $+functions[_ssqch__subcmd__serve_commands] )) ||
|
|
496
|
+
_ssqch__subcmd__serve_commands() {
|
|
497
|
+
local commands; commands=()
|
|
498
|
+
_describe -t commands 'ssqch serve commands' commands "$@"
|
|
499
|
+
}
|
|
500
|
+
(( $+functions[_ssqch__subcmd__types_commands] )) ||
|
|
501
|
+
_ssqch__subcmd__types_commands() {
|
|
502
|
+
local commands; commands=()
|
|
503
|
+
_describe -t commands 'ssqch types commands' commands "$@"
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if [ "$funcstack[1]" = "_ssqch" ]; then
|
|
507
|
+
_ssqch "$@"
|
|
508
|
+
else
|
|
509
|
+
compdef _ssqch ssqch
|
|
510
|
+
fi
|