From d28e4a3b078e593c19c6154f856c88b622ba3d72 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 17 Feb 2020 15:48:59 +0800 Subject: [PATCH] Merge pull request #9874 from dmartinjs/patch-3 Generate custom-elements.json from Stencil --- addons/docs/web-components/README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/addons/docs/web-components/README.md b/addons/docs/web-components/README.md index 9713f42e1fed..35c0083f7a79 100644 --- a/addons/docs/web-components/README.md +++ b/addons/docs/web-components/README.md @@ -35,7 +35,16 @@ Known analyzers that output `custom-elements.json`: - [stenciljs](https://stenciljs.com/) - Supports Stencil (but does not have all metadata) -It basically looks like this: +To generate this file with Stencil, add `docs-vscode` to outputTargets in `stencil.config.ts`: + +``` +{ + type: 'docs-vscode', + file: 'custom-elements.json' +}, +``` + +The file looks somewthing like this: ```json {