From 35cd260ce53968399ce4dcec851bddb7e3323e8b Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 15 Jan 2024 18:05:27 -0800 Subject: [PATCH] chore: clean up unnecessary deps --- .eleventy.js | 8 -------- package-lock.json | 14 -------------- package.json | 2 -- src/_includes/base.liquid | 4 +--- src/_includes/now.liquid | 4 +--- src/_includes/partials/banner-old-post.liquid | 4 +--- src/_includes/partials/now/media-grid.liquid | 4 +--- src/_includes/partials/paginator.liquid | 4 +--- src/_includes/partials/popular-posts.liquid | 4 +--- src/_includes/partials/post-graph.liquid | 4 +--- .../partials/webmentions/container.liquid | 4 +--- src/_includes/post.liquid | 4 +--- src/pages/404.html | 4 +--- src/pages/about.md | 4 +--- src/pages/contact.md | 4 +--- src/pages/search.html | 4 +--- src/pages/webrings.md | 4 +--- .../optimizing-for-performance-with-eleventy.md | 4 +--- 18 files changed, 15 insertions(+), 69 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index f1879b74..d5b7d1e4 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -15,7 +15,6 @@ import { svgToJpeg } from './config/events/index.js' import { tagList, tagMap, postStats } from './config/collections/index.js' import { img } from './config/shortcodes/index.js' -import CleanCSS from 'clean-css' import { execSync } from 'child_process' // load .env @@ -97,13 +96,6 @@ export default async function (eleventyConfig) { }) eleventyConfig.addLiquidFilter('dateToRfc822', pluginRss.dateToRfc822) eleventyConfig.addLiquidFilter('absoluteUrl', pluginRss.absoluteUrl) - eleventyConfig.addFilter('cssmin', (code) => new CleanCSS({ - level: { - 2: { - restructureRules: true, - } - } - }).minify(code).styles) eleventyConfig.addFilter('slugify', slugifyString) // shortcodes diff --git a/package-lock.json b/package-lock.json index 25b8c996..1b33dece 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,6 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "@rknightuk/eleventy-plugin-post-graph": "^1.0.6", "child_process": "^1.0.2", - "clean-css": "^5.3.3", "dotenv-flow": "^4.1.0", "eleventy-plugin-embed-everything": "^1.18.2", "eleventy-plugin-tabler-icons": "^2.3.0", @@ -32,7 +31,6 @@ "markdown-it": "^14.0.0", "markdown-it-anchor": "^8.4.1", "markdown-it-footnote": "^4.0.0", - "marked": "^11.1.1", "outdent": "^0.8.0", "sanitize-html": "^2.11.0", "slugify": "^1.6.6", @@ -2839,18 +2837,6 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/marked": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/marked/-/marked-11.1.1.tgz", - "integrity": "sha512-EgxRjgK9axsQuUa/oKMx5DEY8oXpKJfk61rT5iY3aRlgU6QJtUcxU5OAymdhCvWvhYcd9FKmO5eQoX8m9VGJXg==", - "dev": true, - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 18" - } - }, "node_modules/maximatch": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/maximatch/-/maximatch-0.1.0.tgz", diff --git a/package.json b/package.json index 4a72e0ef..95768294 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0", "@rknightuk/eleventy-plugin-post-graph": "^1.0.6", "child_process": "^1.0.2", - "clean-css": "^5.3.3", "dotenv-flow": "^4.1.0", "eleventy-plugin-embed-everything": "^1.18.2", "eleventy-plugin-tabler-icons": "^2.3.0", @@ -42,7 +41,6 @@ "markdown-it": "^14.0.0", "markdown-it-anchor": "^8.4.1", "markdown-it-footnote": "^4.0.0", - "marked": "^11.1.1", "outdent": "^0.8.0", "sanitize-html": "^2.11.0", "slugify": "^1.6.6", diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index 9d09fb8d..f44e92da 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -36,9 +36,7 @@ {% render "../assets/styles/partials/animations.css" %} {% render "../assets/styles/index.css" %} {% endcapture %} - + - {{ css | cssmin }} - + {{ content }} {% render "partials/now/media-grid.liquid", data:artists, icon: "microphone-2", title: "Artists", shape: "square", count: 8, loading: 'eager' %} {% render "partials/now/media-grid.liquid", data:albums, icon: "vinyl", title: "Albums", shape: "square", count: 8 %} diff --git a/src/_includes/partials/banner-old-post.liquid b/src/_includes/partials/banner-old-post.liquid index 70bdd783..865a1a25 100644 --- a/src/_includes/partials/banner-old-post.liquid +++ b/src/_includes/partials/banner-old-post.liquid @@ -3,9 +3,7 @@ {% capture css %} {% render "../../assets/styles/widgets/banner-old-post.css" %} {% endcapture %} - + diff --git a/src/_includes/partials/now/media-grid.liquid b/src/_includes/partials/now/media-grid.liquid index 4f7dbe33..2314fb3d 100644 --- a/src/_includes/partials/now/media-grid.liquid +++ b/src/_includes/partials/now/media-grid.liquid @@ -4,9 +4,7 @@ {% render "../../../assets/styles/widgets/media-grid.css" %} {% render "../../../assets/styles/widgets/progress-bar.css" %} {% endcapture %} - + {% endif %} {% assign media = data | normalizeMedia %}

diff --git a/src/_includes/partials/paginator.liquid b/src/_includes/partials/paginator.liquid index c8529794..3575f51b 100644 --- a/src/_includes/partials/paginator.liquid +++ b/src/_includes/partials/paginator.liquid @@ -1,9 +1,7 @@ {% capture css %} {% render "../../assets/styles/widgets/paginator.css" %} {% endcapture %} - +