Comparing version 0.1.1 to 0.1.2
@@ -20,3 +20,6 @@ { | ||
"scripts" | ||
] | ||
], | ||
"bin":{ | ||
"vue-demi-fix": "./scripts/postinstall.js" | ||
} | ||
} |
<p align="center"> | ||
<img src="./assets/logo.png" width="200"/> | ||
<br> | ||
<img src="./assets/banner.png" width="500"/> | ||
<br> | ||
<br> | ||
<a href='https://www.npmjs.com/package/vue-demi'><img src='https://img.shields.io/npm/v/vue-demi?color=42b883' alt='npm'></a> | ||
</p> | ||
<h1 align="center">Vue Demi</h1> | ||
<p align="center"> | ||
<b>Vue Demi</b> (<i>half</i> in French) is a developing utility<br> allows you to write <b>Universal Vue Libraries</b> for Vue 2 & 3<br> | ||
<i>See more details in <a href='https://antfu.me/posts/make-libraries-working-with-vue-2-and-3'>this blog post</a></i> | ||
</p> | ||
<h4 align="center"> | ||
<br> | ||
[![npm](https://img.shields.io/npm/v/vue-demi)](https://www.npmjs.com/package/vue-demi) | ||
<pre align="center"> | ||
🚧 It's experimental, yet. | ||
</pre> | ||
</h4> | ||
<br> | ||
<p align="center"> | ||
<b>Vue Demi</b> (<i>half</i> in French) is a developing utility that allows you to write <b>Universal Vue Plugins</b> for Vue 2 and 3. See more details in <a href='https://antfu.me/posts/make-libraries-working-with-vue-2-and-3'>this blog post</a>. | ||
</p> | ||
> 🚧 Expiremental | ||
## Usage | ||
@@ -43,10 +46,25 @@ | ||
Then publish your plugin and all is done! | ||
Publish your plugin and all is done! | ||
## Examples | ||
See [examples](./examples) | ||
See [examples](./examples). | ||
## Underhood | ||
See [the blog post](https://antfu.me/posts/make-libraries-working-with-vue-2-and-3/#-introducing-vue-demi). | ||
<details> | ||
<summary>Redirecting Reslove</summary> | ||
<br> | ||
If the script doesn't get triggered or you have updated the Vue version, try to run the following command to resolve the redirecting. | ||
```bash | ||
npx vue-demi-fix | ||
``` | ||
</details> | ||
## License | ||
MIT License © 2020 [Anthony Fu](https://github.com/antfu) | ||
MIT License © 2020 [Anthony Fu](https://github.com/antfu) |
@@ -39,3 +39,3 @@ const { execSync } = require('child_process') | ||
if (!Vue || typeof Vue.version !== 'string') { | ||
console.warn('[Vue-demi] vue is not detected. Please install vue first.') | ||
console.warn('[vue-demi] Vue is not detected in the dependencies. Please install Vue first.') | ||
} | ||
@@ -51,2 +51,5 @@ else if (Vue.version.startsWith('2.')) { | ||
switchVersion(3) | ||
} | ||
else { | ||
console.warn(`[vue-demi] Vue version v${Vue.version} is not suppported.`) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5257
60
70
2