Skip to content

Commit 9232b71

Browse files
committed
feat(elements): Publish Custom Elements Manifest to support autocompletion in IDEs
1 parent e3c566a commit 9232b71

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

elements/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## 0.39.0
88

9+
### Added
10+
11+
- `@pod-os/elements` now includes a [Custom Elements Manifest](https://github.com/webcomponents/custom-elements-manifest) at `dist/custom-elements.json` that can be used in IDEs to
12+
enable auto-completion for web components.
13+
914
### Fixed
1015

1116
- `elements.css` does not set a height for the body element any more. This led to scrolling bugs in custom dashboards. The setting moved to `pos-app-browser` who original needs it for its own layout.

elements/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"dist/",
1515
"loader/"
1616
],
17+
"customElements": "dist/custom-elements.json",
1718
"scripts": {
1819
"build": "stencil build --docs",
1920
"start": "stencil build --dev --watch --serve",

elements/stencil.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ export const config: Config = {
2424
type: 'docs-readme',
2525
dir: '../docs/elements',
2626
},
27+
{
28+
type: 'docs-custom-elements-manifest',
29+
file: 'dist/custom-elements.json',
30+
},
2731
{
2832
type: 'www',
2933
copy: [

0 commit comments

Comments
 (0)