Use wca to generate the JSON format for VSCode for HTMLCustomData (#619)

* Use web-component-analyzer to generate the JSON format for VSCode for HTMLCustomData

https://github.com/microsoft/vscode-custom-data
https://github.com/runem/web-component-analyzer#vscode

* Adds in the suggested path 'src/**/*.element.ts'

* Runs npm run script for webcomponent analayzer tool

Note its before npm run build:libs as this run runs the script move-libs.js ready for packaging

* move-libs util script updated to copy over the two JSON files from wca cli tool

* Copied file from wrong location as they are being generated and put at the root of the main project

* Adds customElements prop to package.json from this spec

https://github.com/webcomponents/custom-elements-manifest#referencing-manifests-from-npm-packages
This commit is contained in:
Warren Buckley
2023-03-24 11:43:52 +00:00
committed by GitHub
parent e41712ad94
commit 0660e4031d
5 changed files with 18 additions and 1 deletions

View File

@@ -50,6 +50,7 @@
"build-storybook": "npm run wc-analyze && storybook build",
"generate:icons": "node ./devops/icons/index.js",
"wc-analyze": "wca **/*.element.ts --outFile custom-elements.json",
"wc-analyze:vscode": "wca **/*.element.ts --format vscode --outFile vscode-html-custom-data.json",
"new-extension": "plop --plopfile ./devops/plop/plop.js",
"compile": "tsc",
"check": "npm run lint && npm run compile && npm run build-storybook"