Skip to content

Commit 35e17ea

Browse files
Move Vue to PeerDepdency instead of Dependency (#102)
- Add an accurate devDependency for development - Add a ^2.0.0 peerDependency - Remove innacurate support for Vue3
1 parent 8425171 commit 35e17ea

File tree

2 files changed

+7
-35
lines changed

2 files changed

+7
-35
lines changed

README.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ using code that integrates seamlessly with your existing Vue.js application, and
1212
This Readme provides basic installation and usage information. For the complete documentation, see the [Vue.js SDK guide](https://cloudinary.com/documentation/vue_integration)_
1313

1414
# 🛠️ Installation
15-
## Vue 3.x
16-
17-
1. install using your favorite package manager (yarn, npm)
18-
```bash
19-
npm install cloudinary-vue
20-
yarn add cloudinary-vue
21-
```
22-
2315
## Vue 2.x
2416
1. Install using Vue-CLI
2517
- After you create your application with Vue-CLI, navigate to the created app folder, and install Cloudinary SDK by:
@@ -39,29 +31,6 @@ This Readme provides basic installation and usage information. For the complete
3931

4032

4133
# Setup and configuration
42-
## Vue 3.x - Setup and configuration
43-
1. **A Global setup** - Include CloudinaryVue globally
44-
- **Globally as a plugin**:
45-
```javascript
46-
import { createApp } from 'vue';
47-
import App from './App.vue'; // Your app component
48-
import Cloudinary, {CldContext, CldImage, CldTransformation, CldVideo} from "cloudinary-vue";
49-
const app = createApp(App)
50-
51-
app.use(Cloudinary, {
52-
configuration: { cloudName: 'demo' }, // your cloud name
53-
components: {
54-
CldImage,
55-
CldTransformation
56-
}
57-
})
58-
59-
app.mount('#app');
60-
```
61-
**Notes**: By default, if `components` is not passed to the Cloudinary plugin, the plugin will _automatically_ install all available Cloudinary components.
62-
63-
2. **A Local setup** - You can also import the cloudinary components manually in each of your components.
64-
6534
## Vue 2.x - Setup and configuration
6635
1. **A Global setup** - Include CloudinaryVue globally
6736
```javascript

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@
1717
"main": "dist/Cloudinary.umd.js",
1818
"unpkg": "dist/Cloudinary.umd.min.js",
1919
"dependencies": {
20-
"@types/jest": "^25.2.3",
2120
"cloudinary-core": "^2.10.3",
2221
"cloudinary-video-player": "^1.1.1",
2322
"core-js": "2.6.9",
24-
"current-script-polyfill": "1.0.0",
25-
"jest-html-reporters": "^1.2.1",
26-
"vue": "2.6.10"
23+
"current-script-polyfill": "1.0.0"
24+
},
25+
"peerDependencies": {
26+
"vue": "^2.0.0"
2727
},
2828
"devDependencies": {
29+
"vue": "2.6.10",
30+
"@types/jest": "^25.2.3",
31+
"jest-html-reporters": "^1.2.1",
2932
"@storybook/addon-actions": "^5.0.0",
3033
"@storybook/addon-knobs": "^5.0.0",
3134
"@storybook/addon-links": "^5.0.0",

0 commit comments

Comments
 (0)