Skip to content

Commit 66652c8

Browse files
committed
rename package from @cloudinary/vue3 to @cloudinary/vue
1 parent 21d39f9 commit 66652c8

9 files changed

Lines changed: 30 additions & 19 deletions

File tree

e2e-tests/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
"prepare:react": "npm run pack:react-sdk && npm run cpy-react-sdk && npm run build:react-test-app && npm run serve:react-test-app",
1313
"setChromeDriverVersion": "./scripts/setChromeDriverVersion.sh",
1414
"start-server-and-test:react": "WAIT_ON_TIMEOUT=600000 start-server-and-test prepare:react http://127.0.0.1:8000 test",
15-
"pack:vue-sdk": "cd ../frameworks/vue/vue3 && npm run build && npm pack",
16-
"cpy-vue-sdk": "cpy ../frameworks/vue/vue3/cloudinary-vue-*.tgz ./vue3-test-app --rename=cloudinary-vue.tgz",
17-
"build:vue-test-app": "cd vue3-test-app && npm run clean-install && npm run build",
18-
"serve:vue-test-app": "ws --directory vue3-test-app/dist",
15+
"pack:vue-sdk": "cd ../frameworks/vue && npm run build && npm pack",
16+
"cpy-vue-sdk": "cpy ../frameworks/vue/cloudinary-vue-*.tgz ./vue-test-app --rename=cloudinary-vue.tgz",
17+
"build:vue-test-app": "cd vue-test-app && npm run clean-install && npm run build",
18+
"serve:vue-test-app": "ws --directory vue-test-app/dist",
1919
"prepare:vue": "npm run pack:vue-sdk && npm run cpy-vue-sdk && npm run build:vue-test-app && npm run serve:vue-test-app",
2020
"start-server-and-test:vue": "WAIT_ON_TIMEOUT=600000 start-server-and-test prepare:vue http://127.0.0.1:8000 test"
2121
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "lerna run test",
99
"build:docs": "node ./scripts/buildDocs.js",
1010
"start:docs": "live-server --open=public/docs",
11-
"update:urlgen": "npm install @cloudinary/url-gen@latest --prefix packages/html && npm install @cloudinary/url-gen@latest --prefix packages/react && npm install @cloudinary/url-gen@latest --prefix packages/vue3 && npm install @cloudinary/url-gen@latest --prefix packages/angular && npm install @cloudinary/url-gen@latest --prefix packages/angular/projects/cloudinary-library"
11+
"update:urlgen": "npm install @cloudinary/url-gen@latest --prefix packages/html && npm install @cloudinary/url-gen@latest --prefix packages/react && npm install @cloudinary/url-gen@latest --prefix packages/vue && npm install @cloudinary/url-gen@latest --prefix packages/angular && npm install @cloudinary/url-gen@latest --prefix packages/angular/projects/cloudinary-library"
1212
},
1313
"dependencies": {
1414
"better-docs": "2.3.2",

packages/vue/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Cloudinary Vue 3 SDK
1+
Cloudinary Vue SDK
22
=========================
33
## About
4-
The Cloudinary Vue 3 SDK allows you to quickly and easily integrate your application with Cloudinary.
4+
The Cloudinary Vue SDK allows you to quickly and easily integrate your application with Cloudinary.
55
Effortlessly optimize and transform your cloud's assets.
66

77
#### Note
@@ -41,19 +41,19 @@ This Readme provides basic installation and usage information.
4141
## Installation
4242
### Install using your favorite package manager (yarn, npm)
4343
```bash
44-
npm i @cloudinary/url-gen @cloudinary/vue3
44+
npm i @cloudinary/url-gen @cloudinary/vue
4545

4646
```
4747
Or
4848
```bash
49-
yarn add @cloudinary/url-gen @cloudinary/vue3
49+
yarn add @cloudinary/url-gen @cloudinary/vue
5050
```
5151

5252
## Usage Example
5353
### Setup
5454
```vue
5555
<script type="module">
56-
import { AdvancedImage, responsive } from "@cloudinary/vue3"
56+
import { AdvancedImage, responsive } from "@cloudinary/vue"
5757
import { CloudinaryImage } from "@cloudinary/url-gen/assets/CloudinaryImage";
5858
5959
export default {
@@ -88,7 +88,7 @@ export default {
8888

8989
We recommend the following order when using our plugins to achieve the best results:
9090
```js
91-
[lazyload(),responsive(), accessibility(), placeholder()]
91+
[lazyload(), responsive(), accessibility(), placeholder()]
9292
```
9393

9494
You can omit any plugin, but the order from above should remain.

packages/vue/package.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
{
2-
"name": "@cloudinary/vue3",
2+
"name": "@cloudinary/vue",
33
"version": "1.6.0",
4-
"description": "Cloudinary Vue3 SDK",
4+
"description": "Cloudinary Vue SDK",
5+
"author": "cloudinary",
6+
"license": "MIT",
57
"type": "module",
68
"main": "index.js",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/cloudinary/frontend-frameworks.git",
12+
"directory": "packages/vue"
13+
},
714
"scripts": {
815
"build": "rollup -c",
916
"prebuild": "rm -rf dist && npm run build --prefix ../html",
@@ -16,7 +23,7 @@
1623
"test": "npm run test:dist && npm run test:src",
1724
"test:src": "vue-cli-service test:unit --coverage",
1825
"pretest:src": "replace-in-files --string='../../dist' --replacement='../../src' tests/unit/*.spec.ts",
19-
"test:dist": "npm run build && VUE3_TEST_ENV=DIST vue-cli-service test:unit",
26+
"test:dist": "npm run build && VUE_TEST_ENV_TEST_ENV=DIST vue-cli-service test:unit",
2027
"pretest:dist": "replace-in-files --string='../../src\"' --replacement='../../dist\"' tests/unit/*.spec.ts",
2128
"serve:coverage": "http-server coverage/lcov-report",
2229
"lint": "vue-cli-service lint"

packages/vue/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default [
6969
output: {
7070
format: "umd",
7171
file: "dist/index.umd.js",
72-
name: "CloudinaryVue3SDK",
72+
name: "CloudinaryVueSDK",
7373
globals: {
7474
"@cloudinary/html": "CloudinaryHtml",
7575
vue: "Vue",

packages/vue/src/components/AdvancedImage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<script setup lang="ts">
77
/**
8-
* @memberOf Vue3SDK
8+
* @memberOf CloudinaryVueSDK
99
* @type {Component}
1010
* @description The Cloudinary image component.
1111
* @prop {CloudinaryImage} cldImg Generated by @cloudinary/url-gen

packages/vue/tests/unit/analytics.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const cloudinaryImage = new CloudinaryImage("sample", { cloudName: "demo" });
88

99
describe("analytics", () => {
1010
testIf(
11-
!(process.env.VUE3_TEST_ENV === "DIST"),
11+
!(process.env.VUE_TEST_ENV === "DIST"),
1212
"creates an img with analytics using src",
1313
async () => {
1414
// Update src analytics value
@@ -27,7 +27,7 @@ describe("analytics", () => {
2727
);
2828

2929
testIf(
30-
process.env.VUE3_TEST_ENV === "DIST",
30+
process.env.VUE_TEST_ENV === "DIST",
3131
"creates an img with analytics using dist",
3232
async () => {
3333
const component = mount(AdvancedImage, {

packages/vue3/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Cloudinary Vue SDK
2+
=========================
3+
4+
**[DEPRECATED]** Package `@cloudinary/vue3` was renamed to `@cloudinary/vue`. Source code was moved to [packages/vue](https://github.com/cloudinary/frontend-frameworks/tree/master/packages/vue) directory.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@cloudinary/html": ["html/src"],
1313
"@cloudinary/ng": ["angular/projects/cloudinary-library/src"],
1414
"@cloudinary/react": ["react/src"],
15-
"@cloudinary/vue3": ["vue3/src"],
15+
"@cloudinary/vue": ["vue/src"],
1616
"@cloudinary/*": ["*/src"],
1717
"*": ["node_modules"]
1818
},

0 commit comments

Comments
 (0)