Technical requirements
This project has a little less setup than the full website projects we’ve built in this book. We want to keep the plugin directories as clean as possible. As usual, there’s a project folder in the book’s GitHub repository at https://github.com/PacktPublishing/Eleventy-by-Example that has a solid starting point for each plugin. You’ll also want access to the previous projects’ code, as we’ll be using code we’ve already written to create these plugins.
Each plugin we create in this chapter starts from a basic file structure. While we covered best practice project structure in Chapter 1, those best practices were for websites. We want each of these plugins to have as little configuration as possible, so we use the default 11ty structure. Because of this, we don’t have an src
directory and don’t rearrange the layouts and includes separately. The basic project structure for each is a package.json
file...