Skip to content

Commit

Permalink
refactor: use 11ty.ts for type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter committed Apr 19, 2024
1 parent 8f995d8 commit 8ffd94d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ const isDevelopment = process.env.NODE_ENV !== 'production';
import site from './site.config.js';
import colors from 'picocolors';

/** @param {import("@11ty/eleventy").UserConfig} eleventyConfig */
export default function (eleventyConfig) {
import eleventy from '11ty.ts';

export default eleventy(function (eleventyConfig) {
eleventyConfig.addGlobalData('site', site);
eleventyConfig.addPlugin(shortcodes);
eleventyConfig.addPlugin(collections);
Expand Down Expand Up @@ -129,4 +130,4 @@ export default function (eleventyConfig) {
templateFormats: ['md', 'njk', '11ty.js'],
markdownTemplateEngine: 'njk',
};
}
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"format": "prettier --write ."
},
"dependencies": {
"11ty.ts": "^0.0.1",
"@11ty/eleventy": "3.0.0-alpha.6",
"@11ty/eleventy-fetch": "^4.0.1",
"@11ty/eleventy-img": "^4.0.2",
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ffd94d

Please sign in to comment.