Skip to content

Commit 12c0d2a

Browse files
author
Sara Dahan
committed
chore(label-group): resolve patch conflict keeping upstream version
2 parents 616b18d + 916823a commit 12c0d2a

File tree

4 files changed

+112
-2838
lines changed

4 files changed

+112
-2838
lines changed

eleventy.config.cjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const TocPlugin = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.
1717

1818
const markdownItAnchor = require('markdown-it-anchor');
1919

20+
const { $ } = require('execa');
21+
const path = require('node:path');
22+
2023
/** @param {import('@11ty/eleventy/src/UserConfig')} eleventyConfig */
2124
module.exports = function(eleventyConfig) {
2225
eleventyConfig.amendLibrary('md', md => md.use(markdownItAnchor));
@@ -36,6 +39,13 @@ module.exports = function(eleventyConfig) {
3639
/** Generate and consume custom elements manifests */
3740
eleventyConfig.addPlugin(CustomElementsManifestPlugin);
3841

42+
eleventyConfig.on('eleventy.before', async function() {
43+
const projectRoot = path.join(__dirname);
44+
await $({ cwd: path.join(projectRoot, 'elements') })`cem generate`;
45+
await $({ cwd: path.join(projectRoot, 'core', 'pfe-core') })`cem generate`;
46+
});
47+
48+
3949
/** Render docs based on custom elements manifests */
4050
eleventyConfig.addPlugin(CEMRenderPlugin);
4151

0 commit comments

Comments
 (0)