Major Changes
-
d01c7e0: Removed and deprecated esbuild and cem/a features
Breaking Changes
- ❌ Removed esbuild helpers
- 💱 Moved custom-elements-manifest config helper to
custom-elements-manifest/config.js - 💱 Moved dev-server config helper to
dev-server/config.js - 💱 Moved test-runner config helper to
test-runner/config.js ⚠️ Deprecated custom-elements-manifest helpers
Minor Changes
-
c76a65b: ✨ Added
minifyoption to@patternfly/pfe-tools/typescript/transformers/css-imports.cjs -
99db432: ✨ Added
anchors11ty plugin, based on @orchidjs/eleventy-plugin-ids -
d4a99f6: ✨ Added
@patternfly/pfe-toolspackage-
✨ Added dev server and test runner configs
-
✨ Added custom-elements-manifest analyzer configs and plugins
-
✨ Added typescript transform to inline css imports
-
✨ Added 11ty plugins to render custom element manifests, etc.
-
✨ Added test helpers like
a11ySnapshot -
✨ Added
Loggerstub for quieter tests -
✨ Added
colored(colorString)assertion to chai when usingcreateFixtureexpect("rgba(0,0,0,0)").to.be.colored("transparent");
-
✨ Added an optional unified config file for custom elements manifest, dev
server, and docs pagesCreate a
.pfe.config.jsonfile at the root of your project to customize the
pfe tools builds.The default values are:
{ "tagPrefix": "pfe", "demoURLPrefix": "https://patternflyelements.org/", "sourceControlURLPrefix": "https://github.com/patternfly/patternfly-elements/tree/main/", "aliases": {}, "site": { "title": "PatternFly Elements", "description": "PatternFly Elements: A set of community-created web components based on PatternFly design.", "favicon": "/brand/logo/svg/pfe-icon-blue.svg", "logoUrl": "/brand/logo/svg/pfe-icon-white-shaded.svg", "stylesheets": [] } }See
@patternfly/pfe-tools/config.d.tsfor more information.
-
Patch Changes
- 0a22a33:
dev-server: refresh element css when files change - 3ab1de1: Allowed TypeScript modules to import multiple CSS modules when inlining CSS.
- f03a419: 11ty plugin: calculate path to demo files in more circumstances
- 42d5cd9:
a11ySnapshot: fixed typescript types - 5d3315f: Prepared release candidate
- b3b472e: update 11ty
- 3035d91: analyzer: find demos in different repo setups
- 66b025d: dev-server: fixed demo script import and styles