Code Monkey home page Code Monkey logo

svelte-ui-template's Introduction

What

这是一个svelte组件库的starter。 可以用它构建自己或者团队的组件库。

好处是:无论用户使用什么前端框架(Vue, React, Angular等),都可以引用基于svelte构建的组件库里的组件。 因为svelte编译完的组件其实是js模块,即无框架组件。

技术栈:vite + ts + svelte + scss + unocss 加了eslint;

Usage

1.下载项目

git clone https://github.com/cunzaizhuyi/svelte-ui-template

2.开发组件

npm run dev

本模板已经编写好了两个组件,分别是Counter.svelte和Counter2.svelte. 你可以继续在lib下面开发新的组件

3.打包组件库

组件开发好了,就可以打包组件库了

npm run build

4.测试组件

可以在example文件夹下写个HTML文件来测试打包好的组件。

5.发布组件

可以使用npm publish发布自己的跨框架组件库了!

相关文档

B站演示视频

svelte-ui-template's People

Contributors

cunzaizhuyi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.