Skip to content

Commit d06a8db

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 fb51eb1 commit d06a8db

128 files changed

Lines changed: 3955 additions & 3843 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
@@ -63,7 +63,7 @@ jobs:
6363
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR
6464
env:
6565
PR_URL: ${{github.event.pull_request.html_url}}
66-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
66+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6767

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

0 commit comments

Comments
 (0)