feat: upgrade to v3; install eleventy-upgrade-help

This commit is contained in:
Devin Haska 2024-10-03 21:32:47 -07:00
parent e28e804e12
commit ef6923ece6
3 changed files with 1677 additions and 1563 deletions

View file

@ -1,3 +1,4 @@
const UpgradeHelper = require("@11ty/eleventy-upgrade-help");
const pluginRss = require("@11ty/eleventy-plugin-rss"); const pluginRss = require("@11ty/eleventy-plugin-rss");
const pluginNoRobots = require("eleventy-plugin-no-robots"); const pluginNoRobots = require("eleventy-plugin-no-robots");
@ -65,6 +66,8 @@ module.exports = (eleventyConfig) => {
eleventyConfig.addShortcode("image", imageShortcode); eleventyConfig.addShortcode("image", imageShortcode);
eleventyConfig.addShortcode("youtube", liteYoutube); eleventyConfig.addShortcode("youtube", liteYoutube);
eleventyConfig.addPlugin(UpgradeHelper);
return { return {
// Optional (default is set): If your site deploys to a subdirectory, change `pathPrefix`, for example with with GitHub pages // Optional (default is set): If your site deploys to a subdirectory, change `pathPrefix`, for example with with GitHub pages
pathPrefix: "/", pathPrefix: "/",

3230
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,12 +7,12 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"debug": "DEBUG=Eleventy* eleventy --serve --watch", "debug": "DEBUG=Eleventy* eleventy --serve --watch",
"dev": "eleventy --serve --watch --quiet", "start": "eleventy --serve --watch --quiet",
"lint": "eslint src/ config/", "lint": "eslint src/ config/",
"build": "eleventy" "build": "eleventy"
}, },
"devDependencies": { "devDependencies": {
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^3.0.0",
"@11ty/eleventy-fetch": "^4.0.0", "@11ty/eleventy-fetch": "^4.0.0",
"@11ty/eleventy-img": "^3.1.8", "@11ty/eleventy-img": "^3.1.8",
"@11ty/eleventy-plugin-rss": "^1.2.0", "@11ty/eleventy-plugin-rss": "^1.2.0",
@ -38,5 +38,8 @@
"postcss-import": "^16.0.0", "postcss-import": "^16.0.0",
"postcss-import-ext-glob": "^2.1.1", "postcss-import-ext-glob": "^2.1.1",
"prettier": "3.2.4" "prettier": "3.2.4"
},
"dependencies": {
"@11ty/eleventy-upgrade-help": "^3.0.1"
} }
} }