mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 01:44:25 +04:00
8 lines
431 B
JavaScript
8 lines
431 B
JavaScript
import { readFileSync } from "fs";
|
|
import { join } from "path";
|
|
|
|
export function appData(eleventyConfig) {
|
|
eleventyConfig.addGlobalData("package", JSON.parse(readFileSync(join("..", "core", "package.json"), "utf-8")));
|
|
eleventyConfig.addGlobalData("changelog", readFileSync(join("..", "core", "CHANGELOG.md"), "utf-8"));
|
|
eleventyConfig.addGlobalData("libs", JSON.parse(readFileSync(join("..", "core", "libs.json"), "utf-8")));
|
|
} |