Skip to content

Commit

Permalink
Merge pull request #13 from FriedRiceNoodles/build_manifest
Browse files Browse the repository at this point in the history
Add the CEM config.
  • Loading branch information
FriedRiceNoodles authored Feb 21, 2024
2 parents 75c3ca8 + a7460ab commit 37919f1
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 24 deletions.
6 changes: 6 additions & 0 deletions .changeset/moody-cherries-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@banana-ui/banana': patch
'@banana-ui/react': patch
---

Added custom elements manifest.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ types
coverage
.idea
node
docs-dist
docs-dist
custom-elements.json
7 changes: 7 additions & 0 deletions packages/banana/custom-elements-manifest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
/** Globs to analyze */
globs: ['src/**/index.ts'],
/** Globs to exclude */
exclude: ['src/index.ts'],
litelement: true,
};
5 changes: 4 additions & 1 deletion packages/banana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"package.json"
],
"scripts": {
"build": "rimraf umd && rimraf dist && rimraf node && rimraf themes && rollup -c ../../rollup.config.mjs && npm run tsc",
"build": "rimraf umd && rimraf dist && rimraf node && rollup -c ../../rollup.config.mjs && pnpm run tsc && pnpm run cem",
"cem": "custom-elements-manifest analyze --config \"custom-elements-manifest.config.js\"",
"dev": "rollup -c ../../rollup.config.dev.mjs -p ../../scripts/rollup-plugin-copy-types.js -w --no-watch.clearScreen",
"test": "web-test-runner",
"tsc": "rimraf types && npx tsc --project ./tsconfig.types.json && node ./copyTypesToDist.cjs"
Expand All @@ -45,6 +46,7 @@
"lit": "^2.5.0"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.9.2",
"@open-wc/testing": "3.0.0-next.5",
"@types/jest": "^29.5.0",
"@types/react": "^18.0.26",
Expand All @@ -61,5 +63,6 @@
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
"customElements": "custom-elements.json",
"moduleResolution": "node"
}
Loading

0 comments on commit 37919f1

Please sign in to comment.