All Projects → zouhangwithsweet → vue-components-lib-seed

zouhangwithsweet / vue-components-lib-seed

Licence: MIT license
🌱 a vue3.0 components library template. Vue3.0 组件库的次佳实践.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
Handlebars
879 projects

Projects that are alternatives of or similar to vue-components-lib-seed

rgutil
rgutil是基于ES6创建的函数库工具
Stars: ✭ 22 (-85.62%)
Mutual labels:  vue3, vite
electron-vite-tailwind-starter
This Starter utilizes Electron, Vite and Tailwindcss in combination. It trys to adhare best practices.
Stars: ✭ 141 (-7.84%)
Mutual labels:  vue3, vite
preview-pro
Use pro-layout in vitejs. preview https://sendya.github.io/preview-pro/index.html
Stars: ✭ 71 (-53.59%)
Mutual labels:  vue3, vite
vue-lite-admin
a lite vue3.0 admin template,there is no typescript and vuex (但注释挺全)
Stars: ✭ 67 (-56.21%)
Mutual labels:  vue3, vite
seezoon-stack
一款基于当前最前沿的前端(Vue3 + Vite + Antdv)和后台(Spring boot)实现的低代码开发平台。
Stars: ✭ 227 (+48.37%)
Mutual labels:  vue3, vite
iro
IRO - Amazing Color Tools. Color Convert HEX, RGB, HSL and CMYK. Color Inspection with Camera.
Stars: ✭ 103 (-32.68%)
Mutual labels:  vue3, vite
rustplatz
(Inoffizielle) Website für das Rust-Projekt von Dhalucard, Bonjwa und RocketBeans
Stars: ✭ 15 (-90.2%)
Mutual labels:  vue3, vite
vue-component-lib-starter
A bare-bones example of creating your own Vue component library.
Stars: ✭ 221 (+44.44%)
Mutual labels:  vue3, vite
bpmn-vue-activiti
基于Vue3.x + Vite + bpmn-js + element-plus + tsx 实现的Activiti流程设计器(Activiti process designer based on Vue3.x + Vite + BPMN-JS + Element-Plus + TSX implementation)
Stars: ✭ 345 (+125.49%)
Mutual labels:  vue3, vite
howdyjs
一个包含Javascript插件、Vue3组件、Vue3指令的工具库
Stars: ✭ 77 (-49.67%)
Mutual labels:  vue3, vite
soybean-admin
A fresh and elegant admin template, based on Vue3,Vite3,TypeScript,NaiveUI and UnoCSS [一个基于Vue3、Vite3、TypeScript、NaiveUI 和 UnoCSS的清新优雅的中后台模版]
Stars: ✭ 2,322 (+1417.65%)
Mutual labels:  vue3, vite
vuejs-3-examples
Some examples of Vue.js 3.0.
Stars: ✭ 26 (-83.01%)
Mutual labels:  vue3, vite
Admin-Frame-Vue3
基于Vue3 + Element-Plus + Vite 开发的中/后台管理系统
Stars: ✭ 181 (+18.3%)
Mutual labels:  vue3, vite
vue-devui-early
Vue3版本的DevUI组件库。本仓库已迁移至:https://github.com/DevCloudFE/vue-devui
Stars: ✭ 39 (-74.51%)
Mutual labels:  vue3, vite
win7
Yet another OS preview via web technologies focused on Microsoft Windows 7.
Stars: ✭ 93 (-39.22%)
Mutual labels:  vue3, vite
vueuse-vite-starter
⚡️ Starter for Vite + VueUse + TypeScript
Stars: ✭ 121 (-20.92%)
Mutual labels:  vue3, vite
artemis
MateCloud前端代码,基于vue3、vite、pinia、ant-design vue实现的中台系统
Stars: ✭ 129 (-15.69%)
Mutual labels:  vue3, vite
fastadmin
vue3 + element-plus fast admin scaffold, 基于vue3和ElementPlus的中后台快速应用脚手架
Stars: ✭ 50 (-67.32%)
Mutual labels:  vue3, vite
app
专门为互联网人打造的题解神器,神器在手,工作不愁
Stars: ✭ 64 (-58.17%)
Mutual labels:  vue3, vite
mosha-vue-toastify
A light weight and fun Vue 3 toast or notification or snack bar or however you wanna call it library.
Stars: ✭ 185 (+20.92%)
Mutual labels:  vue3, vite

A Vue3 UI library template

GitHub stars

中文文档

Help you quickly create a component library.

  • 🚀 dev with Vite
  • ✈️ build with esbuild
  • 🚁 generate types with ts-morph

Docs

power by vitepress

Feature

  • 🌈 Speedy dev & build
  • 🎆 Customize friendly
  • 📝 More beautiful doc, support Chinese and English. Support Dark Mode by vueuse
  • 🍭 Rich scripts, inspired by esbuild-plugin-vue & vue-dts-gen
  • 😋 Type friendly
  • 🚚 ESM & CJS product

How to use

Generate a repository by vue-components-lib-seed

Checklist

  • Replace all my-lib words with your libary name. Just search my-lib and replace them in VScode
    • .gitignore
    • package.json
    • vite.config.ts
    • .vitepress
    • scripts ...

Install

yarn

Dev

Benefited from vite-plugin-pages, the src/pages/index.vue is the entry page for development. You can visit /[component-name]/demo to check component, like http://localhost:3000/#/button/demo.

yarn dev

Build

yarn build

Test

yarn test

Generate entry point

The entry file is the input option for rollup.

yarn gen-entry

Generate Component

A component's name is required for this command.

yarn gen [component\'s name]

Generate dts

npx esno ./scripts/gen-dts.ts

Release

This command will add git tag、generate changelog. You can test your lib with argument --dry

yarn release [--dry]

Build Docs

Noted: you should run yarn build:lib before run this command. Because the docs need the build bundle.

Docs dev

yarn docs:dev

Docs build

yarn docs:build

Docs deploy

Here is a git action. When you push the code to the master branch, the document will be automatically deployed on gh-pages branch. Then you can set the Github Pages's source on the gh-pages branch.

Use demo code in doc

Take button as an example.

In button.md, insert the following code

:::demo  
src/packages/button/demo/demo0.vue  
:::
- or
:::demo  
src/packages/button/demo/demo*.vue  
:::

There is a global component Demos to display all demos. This is currently the only way to show demo. More info.

Custom doc style

You can add the class in frontmatter, then the <Content> would inherit the class. Of course, the unocss can be used here.

---
class: 'custom-class'
---

Recommended IDE Setup

VSCode + Volar.

If Using <script setup>

<script setup> is a feature that is currently in RFC stage. To get proper IDE support for the syntax, use Volar instead of Vetur (and disable Vetur).

Credits

Thanks


eeeeelle
✍️release-script
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].