From 20c93a0c7a06a90391ebfcfb9f5a5987ade0fac2 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 22 Sep 2023 15:29:44 -0600 Subject: [PATCH] Put CEM where api-viewer can find it --- doc/etemplate2/eleventy.config.cjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/etemplate2/eleventy.config.cjs b/doc/etemplate2/eleventy.config.cjs index c0e5872ca4..7f1976e7d4 100644 --- a/doc/etemplate2/eleventy.config.cjs +++ b/doc/etemplate2/eleventy.config.cjs @@ -24,9 +24,12 @@ const npmdir = 'dist'; const allComponents = getAllComponents(); let hasBuiltSearchIndex = false; -// Write component data to file, 11ty will pick it up and create pages +// Write component data to file, 11ty will pick it up and create pages - the name & location are important fs.writeFileSync("_data/components.json", JSON.stringify(allComponents)); +// Put it here too, since addPassthroughCopy() ignores it +fs.copyFileSync("../dist/custom-elements.json", "assets/custom-elements.json"); + module.exports = function (eleventyConfig) { //