A collection of plugins I've written for eleventy.
| date | Dead simple Eleventy plugin for formatting dates inside your templates |
| vibrant | Extract prominent colors from your Eleventy site's images |
This repository is a monorepo which leverages pnpm for dependency management.
To begin, please install pnpm:
$ npm install pnpm -gAll plugin packages are kept in the /packages directory.
$ pnpm add <package> --filter ./packages/<name>Where <package> is the name of the NPM package you wish to add for a plugin package, and <name> is the proper name of the plugin.
To run tests on all packages which have changes:
$ pnpm run testTo run tests on a specific package:
$ pnpm run test --filter ./packages/<name>Linting:
To lint all packages which have changes:
$ pnpm run lintTo lint a specific package:
$ pnpm run lint --filter ./packages/<name>Note: Scripts in the repository will run the root test and lint script on those packages which have changes. This is also how the CI pipelines function. To run either on a package outside of that pipeline, use pnpm run <script> -- eleventy-plugin-<name>.