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:
@@ -13,6 +13,7 @@ on:
|
||||
- 'package-lock.json'
|
||||
- '.github/workflows/npm-publish-github-packages.yml'
|
||||
- './rollup-libs.config.js'
|
||||
- 'src/**/*.element.ts'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
@@ -21,6 +22,7 @@ on:
|
||||
- 'package-lock.json'
|
||||
- '.github/workflows/npm-publish-github-packages.yml'
|
||||
- './rollup-libs.config.js'
|
||||
- 'src/**/*.element.ts'
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
@@ -36,6 +38,8 @@ jobs:
|
||||
node-version: 18
|
||||
cache: 'npm'
|
||||
- run: npm ci
|
||||
- run: npm run wc-analyze
|
||||
- run: npm run wc-analyze:vscode
|
||||
- run: npm run build:libs
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user