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

Migrate component to Svelte CustomElement API #1

Merged
merged 32 commits into from
May 18, 2021
Merged

Migrate component to Svelte CustomElement API #1

merged 32 commits into from
May 18, 2021

Conversation

Th1nkK1D
Copy link
Collaborator

@Th1nkK1D Th1nkK1D commented May 17, 2021

Changes

1. Replace Hybrid with Svelte

  • Use esbuilt + svelte-preprocessor
  • Svelte syntax is more intuitive and has less learning curve
  • Svelte is a compiler, get rid of Hybrid dependency on run time

2. Replace twind with WindiCSS

  • WindiCSS compatible with Tailwind
  • WindiCSS used during built time, get rid of twind dependency on run time

3. The component is self-register with elect- prefix (breaking change)

  • Can be used right away after import
  • Making component name consistent between the projects
  • Components can be import all or just specific component

4. Remove postcss and cssnano for css minify

  • Let esbuild handle all the things

5. Update doc and geerator

  • To match the latest version of code

Notes

Introduce some workaround for

@Th1nkK1D Th1nkK1D added the enhancement New feature or request label May 17, 2021
@Th1nkK1D Th1nkK1D merged commit 81e2b91 into main May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant