deno.land / x / lume@v2.1.4 / core / utils / lume_config.ts

lume_config.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
/** A list of the available plugins not installed by default */export const pluginNames = [ "attributes", "base_path", "code_highlight", "date", "decap_cms", "esbuild", "eta", "favicon", "feed", "fff", "filter_pages", "inline", "jsx", "jsx_preact", "katex", "lightningcss", "liquid", "mdx", "metas", "minify_html", "modify_urls", "multilanguage", "nav", "nunjucks", "og_images", "on_demand", "pagefind", "picture", "postcss", "prism", "pug", "reading_info", "redirects", "relations", "relative_urls", "remark", "resolve_urls", "robots", "sass", "sheets", "sitemap", "slugify_urls", "source_maps", "svgo", "tailwindcss", "terser", "transform_images", "toml", "unocss",];
/** Returns the _config file of a site */export async function getConfigFile( path?: string, defaultPaths: string[] = ["_config.js", "_config.ts"],): Promise<string | undefined> { if (path) { try { return await Deno.realPath(path); } catch { throw new Error(`Config file not found (${path})`); } }
for (const path of defaultPaths) { try { return await Deno.realPath(path); } catch { // Ignore } }}
lume

Version Info

Tagged at
7 months ago