Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: generate custom elements manifest #9556

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 187 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/calcite-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
"unpkg": "dist/calcite/calcite.js",
"collection:main": "dist/collection/index.js",
"collection": "dist/collection/collection-manifest.json",
"customElements": "dist/extras/custom-elements.json",
"files": [
"dist/",
"hydrate/"
],
"scripts": {
"build": "npm run util:prep-build-reqs && stencil build",
"postbuild": "npm run util:patch && npm run util:generate-t9n-docs-json && npm run util:clean-readmes",
"postbuild": "npm run util:patch && npm run util:generate-t9n-docs-json && npm run util:generate-manifest && npm run util:clean-readmes",
"build:watch": "npm run util:prep-build-reqs && stencil build --no-docs --watch",
"build:watch-dev": "npm run util:prep-build-reqs && stencil build --no-docs --dev --watch",
"build-storybook": "npm run util:prep-storybook-build && NODE_OPTIONS=--openssl-legacy-provider storybook build --output-dir ./docs --quiet",
Expand All @@ -41,6 +42,7 @@
"test": "stencil test --no-docs --no-build --spec --e2e",
"test:prerender": "npm run build -- --prerender",
"test:watch": "stencil test --no-docs --spec --e2e --watchAll",
"util:generate-manifest": "custom-elements-manifest analyze --stencil --outdir dist/extras --globs 'src/components/*/*.tsx'",
"util:clean-tested-build": "npm ci && npm test && npm run build",
"util:copy-assets": "npm run util:copy-icons",
"util:copy-icons": "cpy \"../../node_modules/@esri/calcite-ui-icons/js/*.json\" \"./src/components/icon/assets/icon/\" --flat",
Expand Down Expand Up @@ -76,6 +78,7 @@
"type-fest": "4.18.2"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "0.10.2",
"@esri/calcite-design-tokens": "^2.2.1-next.0",
"@esri/calcite-ui-icons": "3.28.2",
"@esri/eslint-plugin-calcite-components": "^1.2.1-next.2",
Expand Down
Loading