Coder Social home page Coder Social logo

enpitsulin / demi-ui-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.24 MB

Vue universal ui libraries template, can use both vue 2 & vue 3

License: MIT License

JavaScript 16.38% TypeScript 79.66% Vue 1.81% Shell 1.19% CSS 0.96%
vue libarary template ui

demi-ui-template's Introduction

demi-ui-template

_Develop once, Use in both Vue 2.7 & Vue3_

English | 简体中文

Motivation

Although a long time has passed since Vue 3 announced, there are also many developer still stay on vue2 because dependency compatibly, browser support requirements, or other reasons.

The Vue team also have backported some important feature from Vue 3 like composition-api in Vue 2.7 which was last minor version of Vue 2.x.

If we just want create a UI library that follows design specification and can be use on both Vue 2 and Vue 3 project, How?

Fortunately, there was a Community solution a long time ago, vue-demi, so I built a template for building your universal ui libraries on top of this. take a try 😉

How to Use

Github Template

Create a repo from this template on GitHub.

Clone to local

Clone this repo directly, or you prefer to do it manually with the cleaner git history

npx degit enpitsulin/demi-ui-template project-name
cd project-name
pnpm i # If you don't have pnpm installed, refer to the official pnpm documentation to install

Checklist

When you use this template, try follow the checklist to update your info properly

  • Change the author name in LICENSE under root of workspace
  • Change @demi/ in each subpackage to the scope you want or use single package name, DON'T forget change name where be used to as dependency.
    • Change the private field of some subpackages for distribution (optional)
  • Change some build-related constants in constants.ts in the internal/build package
  • Clean up the READMEs or change the content

Usage

Development

WIP: TODO create a website to show some doc thing.

Build

To build the library, run (in workspace root)

pnpm build

And you will see the library product file in packages/demi-ui/release/ you can direct npm publish this directory.

demi-ui-template's People

Contributors

enpitsulin avatar

Stargazers

 avatar

Watchers

 avatar  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.