Thanks to visit codestin.com
Credit goes to github.com

Skip to content
forked from vueuse/vue-demi

🎩 Creates Universal Library for Vue 2 & 3

License

immissile/vue-demi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation




npm

Vue Demi (half in French) is a developing utility
allows you to write Universal Vue Libraries for Vue 2 & 3
See more details in this blog post


🚧 It's experimental, yet.

Usage

Install this as your plugin's dependency:

npm i vue-demi
# or
yarn add vue-demi
{
  "dependencies": {
    "vue-demi": "latest"
  }
}

Import everything related to Vue from it, it will redirect to vue@2 @vue/composition-api or vue@next based on users' environments.

import { ref, reactive, defineComponent } from 'vue-demi'

Publish your plugin and all is done!

Examples

See examples.

Underhood

See the blog post.

Redirecting Reslove
If the script doesn't get triggered or you have updated the Vue version, try to run the following command to resolve the redirecting.
npx vue-demi-fix

License

MIT License © 2020 Anthony Fu

About

🎩 Creates Universal Library for Vue 2 & 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%