eleventy-plugin-vento 5.2.1 → 5.3.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/CHANGELOG.md +8 -0
- package/dist/plugin.d.mts +37 -18
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
package/dist/plugin.d.mts
CHANGED
|
@@ -1,44 +1,63 @@
|
|
|
1
1
|
import * as ventojs from "ventojs";
|
|
2
|
-
import
|
|
2
|
+
import _UserConfig from "@11ty/eleventy/UserConfig";
|
|
3
3
|
import { LiteralUnion } from "type-fest";
|
|
4
4
|
import { Plugin } from "ventojs/core/environment.js";
|
|
5
5
|
|
|
6
|
+
//#region src/types/eleventy.d.ts
|
|
7
|
+
|
|
8
|
+
interface UserConfig extends _UserConfig {
|
|
9
|
+
directories: {
|
|
10
|
+
input: string;
|
|
11
|
+
output: string;
|
|
12
|
+
includes: string;
|
|
13
|
+
layouts: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
6
17
|
//#region src/types/options.d.ts
|
|
7
18
|
interface PluginOptions {
|
|
8
19
|
/**
|
|
9
20
|
* An array of Vento plugins
|
|
10
21
|
*/
|
|
11
|
-
plugins
|
|
22
|
+
plugins: Plugin[];
|
|
12
23
|
/**
|
|
13
24
|
* Enables Vento's autotrim plugin.
|
|
14
|
-
*
|
|
25
|
+
* @example
|
|
15
26
|
* // Set to an array of tags
|
|
16
27
|
* autotrim: ['tag1', 'tag2']
|
|
17
|
-
*
|
|
28
|
+
* @example
|
|
18
29
|
* // Use Vento's defaults and Eleventy paired shortcodes
|
|
19
|
-
* //
|
|
30
|
+
* // Setting `true` is functionally equivalent to both
|
|
31
|
+
* // `@vento` and `@11ty` being present
|
|
20
32
|
* autotrim: ['@vento', '@11ty']
|
|
21
33
|
* autotrim: true
|
|
22
|
-
* ```
|
|
23
34
|
*/
|
|
24
|
-
autotrim
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
|
|
35
|
+
autotrim: LiteralUnion<'@11ty' | '@vento', string>[] | boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Enable use of Eleventy filters
|
|
38
|
+
*/
|
|
39
|
+
filters: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Enable use of Eleventy shortcodes
|
|
42
|
+
*/
|
|
43
|
+
shortcodes: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Enable use of Eleventy paired shortcodes
|
|
46
|
+
*/
|
|
47
|
+
pairedShortcodes: boolean;
|
|
31
48
|
/**
|
|
32
49
|
* A Vento configuration object.
|
|
33
|
-
*
|
|
34
|
-
* **Note that `ventoOptions.includes` defaults to
|
|
35
|
-
* Eleventy's own `dir.includes` location.**
|
|
36
50
|
* @see {@link https://vento.js.org/configuration/}
|
|
51
|
+
* @default
|
|
52
|
+
* {
|
|
53
|
+
* // Defaults to Eleventy's own `includes` directory
|
|
54
|
+
* includes: eleventyConfig.directories.includes
|
|
55
|
+
* }
|
|
37
56
|
*/
|
|
38
|
-
ventoOptions
|
|
57
|
+
ventoOptions: ventojs.Options;
|
|
39
58
|
}
|
|
40
59
|
//#endregion
|
|
41
60
|
//#region src/plugin.d.ts
|
|
42
|
-
declare function VentoPlugin(eleventyConfig: UserConfig, userOptions
|
|
61
|
+
declare function VentoPlugin(eleventyConfig: UserConfig, userOptions?: Partial<PluginOptions>): void;
|
|
43
62
|
//#endregion
|
|
44
63
|
export { VentoPlugin };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eleventy-plugin-vento",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Adds support for the Vento templating language to Eleventy.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"debug": "4.4.3",
|
|
40
|
-
"ventojs": "2.
|
|
40
|
+
"ventojs": "2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"11ty.ts": "0.0.6",
|
|
44
44
|
"@11ty/eleventy": "3.1.2",
|
|
45
45
|
"@changesets/cli": "2.29.8",
|
|
46
|
-
"@eslint/js": "9.39.
|
|
46
|
+
"@eslint/js": "9.39.2",
|
|
47
47
|
"@types/debug": "4.1.12",
|
|
48
|
-
"@types/node": "24.10.
|
|
49
|
-
"eslint": "9.39.
|
|
48
|
+
"@types/node": "24.10.4",
|
|
49
|
+
"eslint": "9.39.2",
|
|
50
50
|
"eslint-config-prettier": "10.1.8",
|
|
51
51
|
"eslint-plugin-unicorn": "62.0.0",
|
|
52
|
-
"globals": "
|
|
53
|
-
"knip": "5.
|
|
54
|
-
"prettier": "3.
|
|
55
|
-
"tsdown": "0.
|
|
56
|
-
"type-fest": "5.
|
|
52
|
+
"globals": "17.0.0",
|
|
53
|
+
"knip": "5.78.0",
|
|
54
|
+
"prettier": "3.7.4",
|
|
55
|
+
"tsdown": "0.18.4",
|
|
56
|
+
"type-fest": "5.3.1",
|
|
57
57
|
"typescript": "5.9.3",
|
|
58
|
-
"typescript-eslint": "8.
|
|
59
|
-
"vitest": "4.0.
|
|
58
|
+
"typescript-eslint": "8.51.0",
|
|
59
|
+
"vitest": "4.0.16"
|
|
60
60
|
}
|
|
61
61
|
}
|