Skip to content

Commit f27e7e4

Browse files
committed
#780 Migrate build from webpack to Vite
- Changed build config from webpack to vite (see details below). - Moved root files to /lib for better code organization, leaving main entry points in root. - Implemented custom customElement decorator to work around duplicated registrations. The new configuration produces the following outputs: - For npm consumers, *.esm.js and *.cjs.js files. The main export exposes helpers, all components can be registered with solid-ui/components, and individual components can be registered with solid-ui/components/*. - For modern CDNs, we have ESM bundles in *.js files, also allowing all components or invidiual imports. These now include solid-logic and rdflib, no need to load them separatedly. - For legacy CDNs, we still have the UMD bundles, but those are discouraged and not documented in the README anymore. These ones still externalize solid-logic and rdflib. References: - Lit Publishing docs: https://lit.dev/docs/tools/publishing - Web Awesome installation docs: https://webawesome.com/docs - Web Awesome discussion on CDN declarations: shoelace-style/webawesome#2146
1 parent e491a0d commit f27e7e4

127 files changed

Lines changed: 5512 additions & 5758 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
6666
env:
6767
PR_URL: ${{github.event.pull_request.html_url}}
68-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
68+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6969

7070
npm-publish-dev:
7171
needs: build
@@ -111,12 +111,12 @@ jobs:
111111
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112112
run: |
113113
TAG="v$(node -p 'require("./package.json").version')"
114-
114+
115115
if gh release view "$TAG" >/dev/null 2>&1; then
116116
echo "Release $TAG already exists. Skipping."
117117
exit 0
118118
fi
119-
119+
120120
if git ls-remote --exit-code --tags origin "refs/tags/$TAG" >/dev/null 2>&1; then
121121
echo "Tag $TAG already exists on origin. Creating release from existing tag."
122122
gh release create "$TAG" --verify-tag --generate-notes

0 commit comments

Comments
 (0)