feat: 🔧 add 11ty icon plugin & simple icons pack

This commit is contained in:
Sebin Nyshkim 2024-10-19 19:47:50 +02:00
parent 013816cee3
commit a1c27f973d
3 changed files with 81 additions and 7 deletions

View file

@ -4,6 +4,7 @@ import { eleventyImageTransformPlugin } from '@11ty/eleventy-img';
import { feedPlugin } from '@11ty/eleventy-plugin-rss'; import { feedPlugin } from '@11ty/eleventy-plugin-rss';
import eleventyPluginCiu from '@alexcarpenter/eleventy-plugin-caniuse'; import eleventyPluginCiu from '@alexcarpenter/eleventy-plugin-caniuse';
import eleventyPluginEmbedEverything from 'eleventy-plugin-embed-everything'; import eleventyPluginEmbedEverything from 'eleventy-plugin-embed-everything';
import eleventyPluginIcons from 'eleventy-plugin-icons';
import eleventyPluginLucideIcons from '@grimlink/eleventy-plugin-lucide-icons'; import eleventyPluginLucideIcons from '@grimlink/eleventy-plugin-lucide-icons';
import eleventyPluginMetagen from 'eleventy-plugin-metagen'; import eleventyPluginMetagen from 'eleventy-plugin-metagen';
import eleventyPluginNavigation from '@11ty/eleventy-navigation'; import eleventyPluginNavigation from '@11ty/eleventy-navigation';
@ -32,6 +33,9 @@ export default async function (eleventyConfig) {
eleventyConfig.addPlugin(eleventyPluginCiu); eleventyConfig.addPlugin(eleventyPluginCiu);
eleventyConfig.addPlugin(eleventyPluginEmbedEverything); eleventyConfig.addPlugin(eleventyPluginEmbedEverything);
eleventyConfig.addPlugin(eleventyPluginIcons, {
sources: [{ name: 'simple', path: 'node_modules/simple-icons/icons' }]
});
eleventyConfig.addPlugin(eleventyPluginLucideIcons, { 'aria-hidden': 'true' }); eleventyConfig.addPlugin(eleventyPluginLucideIcons, { 'aria-hidden': 'true' });
eleventyConfig.addPlugin(eleventyPluginMetagen); eleventyConfig.addPlugin(eleventyPluginMetagen);
eleventyConfig.addPlugin(eleventyPluginNavigation); eleventyConfig.addPlugin(eleventyPluginNavigation);

82
package-lock.json generated
View file

@ -21,6 +21,7 @@
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
"eleventy-google-fonts": "^0.1.0", "eleventy-google-fonts": "^0.1.0",
"eleventy-plugin-embed-everything": "^1.19.0", "eleventy-plugin-embed-everything": "^1.19.0",
"eleventy-plugin-icons": "^4.5.1",
"eleventy-plugin-metagen": "^1.8.3", "eleventy-plugin-metagen": "^1.8.3",
"eleventy-plugin-og-image": "^4.0.0", "eleventy-plugin-og-image": "^4.0.0",
"eleventy-plugin-robotstxt": "^1.0.0", "eleventy-plugin-robotstxt": "^1.0.0",
@ -29,6 +30,7 @@
"markdown-it-collapsible": "^2.0.2", "markdown-it-collapsible": "^2.0.2",
"markdown-it-footnote": "^4.0.0", "markdown-it-footnote": "^4.0.0",
"markdown-it-obsidian-callouts": "^0.3.0", "markdown-it-obsidian-callouts": "^0.3.0",
"simple-icons": "^13.14.0",
"tailwindcss": "^3.4.13", "tailwindcss": "^3.4.13",
"tailwindcss-safe-area": "^0.6.0" "tailwindcss-safe-area": "^0.6.0"
} }
@ -532,11 +534,15 @@
"version": "2.0.7", "version": "2.0.7",
"resolved": "https://registry.npmjs.org/@grimlink/eleventy-plugin-lucide-icons/-/eleventy-plugin-lucide-icons-2.0.7.tgz", "resolved": "https://registry.npmjs.org/@grimlink/eleventy-plugin-lucide-icons/-/eleventy-plugin-lucide-icons-2.0.7.tgz",
"integrity": "sha512-WL6UpP8KDaMa6T49nViN9ItzI/RKKeL7V7hU92Aq3Gdg4steG9EFWZpmUKa48PK/+iKWSXjmjUg6bttq+jHRHw==", "integrity": "sha512-WL6UpP8KDaMa6T49nViN9ItzI/RKKeL7V7hU92Aq3Gdg4steG9EFWZpmUKa48PK/+iKWSXjmjUg6bttq+jHRHw==",
"license": "MIT",
"dependencies": { "dependencies": {
"lucide-static": "^0.446.0" "lucide-static": "^0.446.0"
} }
}, },
"node_modules/@grimlink/eleventy-plugin-lucide-icons/node_modules/lucide-static": {
"version": "0.446.0",
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-0.446.0.tgz",
"integrity": "sha512-u9IkgI8k7qk738A9rt+JlENM5Sz/18EaEfqTfMEhXy2Sjq1uJA2I1WacVn6wJPXNHzrFpI5BCSmi1GtnGhsVwA=="
},
"node_modules/@iarna/toml": { "node_modules/@iarna/toml": {
"version": "2.2.5", "version": "2.2.5",
"resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz", "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-2.2.5.tgz",
@ -2947,6 +2953,21 @@
"deepmerge": "^4.3.1" "deepmerge": "^4.3.1"
} }
}, },
"node_modules/eleventy-plugin-icons": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/eleventy-plugin-icons/-/eleventy-plugin-icons-4.5.1.tgz",
"integrity": "sha512-rwvLa05i6371avfdzt19KzBiVQc/9OLV7OGaD0X0sYzMFu6h+QkhtOGDTCOibUe5FXKDQGly3DQ0Us3IQlsKuw==",
"dependencies": {
"fast-xml-parser": "^4.4.0",
"just-extend": "^6.2.0",
"just-memoize": "^2.2.0",
"just-typeof": "^3.2.0",
"kleur": "^4.1.5"
},
"engines": {
"node": ">=16.20.2"
}
},
"node_modules/eleventy-plugin-metagen": { "node_modules/eleventy-plugin-metagen": {
"version": "1.8.3", "version": "1.8.3",
"resolved": "https://registry.npmjs.org/eleventy-plugin-metagen/-/eleventy-plugin-metagen-1.8.3.tgz", "resolved": "https://registry.npmjs.org/eleventy-plugin-metagen/-/eleventy-plugin-metagen-1.8.3.tgz",
@ -3816,6 +3837,27 @@
"node": ">=8.6.0" "node": ">=8.6.0"
} }
}, },
"node_modules/fast-xml-parser": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.5.0.tgz",
"integrity": "sha512-/PlTQCI96+fZMAOLMZK4CWG1ItCbfZ/0jx7UIJFChPNrx7tcEgerUgWbeieCM9MfHInUDyK8DWYZ+YrywDJuTg==",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/NaturalIntelligence"
},
{
"type": "paypal",
"url": "https://paypal.me/naturalintelligence"
}
],
"dependencies": {
"strnum": "^1.0.5"
},
"bin": {
"fxparser": "src/cli/cli.js"
}
},
"node_modules/fastq": { "node_modules/fastq": {
"version": "1.17.1", "version": "1.17.1",
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
@ -4824,6 +4866,21 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/just-extend": {
"version": "6.2.0",
"resolved": "https://registry.npmjs.org/just-extend/-/just-extend-6.2.0.tgz",
"integrity": "sha512-cYofQu2Xpom82S6qD778jBDpwvvy39s1l/hrYij2u9AMdQcGRpaBu6kY4mVhuno5kJVi1DAz4aiphA2WI1/OAw=="
},
"node_modules/just-memoize": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/just-memoize/-/just-memoize-2.2.0.tgz",
"integrity": "sha512-zriv+MY+61RXT0QsrO1ZJtL5umouqqSWmCGBkp2wJm35kniunBAA4qhUKx8Lvg/QcwrF9xuw9E6PkevKFf4boQ=="
},
"node_modules/just-typeof": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/just-typeof/-/just-typeof-3.2.0.tgz",
"integrity": "sha512-nOKazfzrQDEGNwXPfWEB64QD+ATZUnpOTJn0xMnCk41p297P9Emt3BlsRyWbu+CErMjopnFTGcYHJnvFX97ZIQ=="
},
"node_modules/keyv": { "node_modules/keyv": {
"version": "4.5.4", "version": "4.5.4",
"resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
@ -5125,12 +5182,6 @@
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
"integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==" "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="
}, },
"node_modules/lucide-static": {
"version": "0.446.0",
"resolved": "https://registry.npmjs.org/lucide-static/-/lucide-static-0.446.0.tgz",
"integrity": "sha512-u9IkgI8k7qk738A9rt+JlENM5Sz/18EaEfqTfMEhXy2Sjq1uJA2I1WacVn6wJPXNHzrFpI5BCSmi1GtnGhsVwA==",
"license": "ISC"
},
"node_modules/luxon": { "node_modules/luxon": {
"version": "3.5.0", "version": "3.5.0",
"resolved": "https://registry.npmjs.org/luxon/-/luxon-3.5.0.tgz", "resolved": "https://registry.npmjs.org/luxon/-/luxon-3.5.0.tgz",
@ -7013,6 +7064,18 @@
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"
} }
}, },
"node_modules/simple-icons": {
"version": "13.14.0",
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-13.14.0.tgz",
"integrity": "sha512-eUl/xnY9/BN/UPthZYi5tPQtHFxbqxO0lS/nMaG2QJAXRzXqLWnQHoJZdrV4+TZ2tb7JO3qqFCkg8UVVgTuKOQ==",
"engines": {
"node": ">=0.12.18"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/simple-icons"
}
},
"node_modules/simple-swizzle": { "node_modules/simple-swizzle": {
"version": "0.2.2", "version": "0.2.2",
"resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz",
@ -7313,6 +7376,11 @@
"node": ">=0.10.0" "node": ">=0.10.0"
} }
}, },
"node_modules/strnum": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz",
"integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA=="
},
"node_modules/sucrase": { "node_modules/sucrase": {
"version": "3.35.0", "version": "3.35.0",
"resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",

View file

@ -28,6 +28,7 @@
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
"eleventy-google-fonts": "^0.1.0", "eleventy-google-fonts": "^0.1.0",
"eleventy-plugin-embed-everything": "^1.19.0", "eleventy-plugin-embed-everything": "^1.19.0",
"eleventy-plugin-icons": "^4.5.1",
"eleventy-plugin-metagen": "^1.8.3", "eleventy-plugin-metagen": "^1.8.3",
"eleventy-plugin-og-image": "^4.0.0", "eleventy-plugin-og-image": "^4.0.0",
"eleventy-plugin-robotstxt": "^1.0.0", "eleventy-plugin-robotstxt": "^1.0.0",
@ -36,6 +37,7 @@
"markdown-it-collapsible": "^2.0.2", "markdown-it-collapsible": "^2.0.2",
"markdown-it-footnote": "^4.0.0", "markdown-it-footnote": "^4.0.0",
"markdown-it-obsidian-callouts": "^0.3.0", "markdown-it-obsidian-callouts": "^0.3.0",
"simple-icons": "^13.14.0",
"tailwindcss": "^3.4.13", "tailwindcss": "^3.4.13",
"tailwindcss-safe-area": "^0.6.0" "tailwindcss-safe-area": "^0.6.0"
} }