New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@11ty/eleventy-upgrade-help

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@11ty/eleventy-upgrade-help

Helper plugin when upgrading your Eleventy project to a new major version.

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
949
32.54%
Maintainers
1
Weekly downloads
 
Created
Source

eleventy-upgrade-help

A plugin to help you upgrade your Eleventy project to a new major version. The major version of this plugin will always match the major version of Eleventy that you’re upgrading to.

Usage

Install from npm:

npm install @11ty/eleventy-upgrade-help

Add to your configuration file (probably .eleventy.js):

const UpgradeHelper = require("@11ty/eleventy-upgrade-help");

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(UpgradeHelper);
};

Features

Swap from slug to slugify Filter

Issue 278. Useful when you want to swap your existing use of the slug filter to the new slugify filter and want to compare any URLs that may have changed. Read more about the slug to slugify transition on the Eleventy docs.

Data Deep Merge

Issue 1753. Warns if you do not use eleventyConfig.setDataDeepMerge in your configuration file that the default value has changed.

Liquid Options

Issue 1390

  • Warns if you use strict_filters instead of strictFilters.
  • Warns if you don’t have strict_filters or strictFilters that the new default is true.
  • Warns if you don’t have dynamicPartials, the new default is true.

Non-root Input directory .gitignore

Issue 364. If your input directory is not . and you have a .gitignore file inside (e.g. src/.gitignore), this file is no longer supported.

  • {ROOT}/.gitignore
  • 🚫 {INPUT_DIR}/.gitignore (removed in 1.0)
  • {ROOT}/.eleventyignore
  • {INPUT_DIR}/.eleventyignore

Feature Opt-out

const UpgradeHelper = require("@11ty/eleventy-upgrade-help");

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(UpgradeHelper, {
    slugToSlugify: false,
    dataDeepMerge: false,
    liquidOptions: false,
    inputDirGitignore: false,
  });
};

Keywords

eleventy

FAQs

Package last updated on 07 Oct 2021

Related posts