next-cloudinary 6.0.0-beta.1 → 6.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/dist/index.d.mts +271 -249
- package/dist/index.d.ts +271 -249
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
|
|
13
13
|
######
|
|
14
14
|
|
|
15
|
-
<a href="https://github.com/cloudinary-community/next-cloudinary/actions/workflows/test_and_release.yml"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/cloudinary-community/next-cloudinary/test_and_release.yml?branch=main&label=Test%20%26%20Release&style=flat-square"></a> <a href="https://www.npmjs.com/package/next-cloudinary"><img alt="npm" src="https://img.shields.io/npm/v/next-cloudinary?style=flat-square"></a> <a href="https://github.com/cloudinary-community/next-cloudinary/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/cloudinary-community/next-cloudinary?label=License&style=flat-square"></a>
|
|
15
|
+
<a href="https://github.com/cloudinary-community/next-cloudinary/actions/workflows/test_and_release.yml"><img alt="GitHub Workflow Status" src="https://img.shields.io/github/actions/workflow/status/cloudinary-community/next-cloudinary/test_and_release.yml?branch=main&label=Test%20%26%20Release&style=flat-square"></a> <a href="https://www.npmjs.com/package/next-cloudinary"><img alt="npm" src="https://img.shields.io/npm/v/next-cloudinary?style=flat-square"></a> <a href="https://bundlephobia.com/package/next-cloudinary"><img alt="npm bundle size" src="https://img.shields.io/bundlephobia/min/next-cloudinary?style=flat-square&label=Minified%20Size"></a> <a href="https://github.com/cloudinary-community/next-cloudinary/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/cloudinary-community/next-cloudinary?label=License&style=flat-square"></a>
|
|
16
|
+
|
|
16
17
|
|
|
17
18
|
# Next Cloudinary
|
|
18
19
|
|
|
@@ -39,9 +40,8 @@ High-performance image delivery and uploading at scale in Next.js powered by Clo
|
|
|
39
40
|
### Installation
|
|
40
41
|
|
|
41
42
|
* Install `next-cloudinary` with:
|
|
43
|
+
|
|
42
44
|
```
|
|
43
|
-
yarn add next-cloudinary
|
|
44
|
-
# or
|
|
45
45
|
npm install next-cloudinary
|
|
46
46
|
```
|
|
47
47
|
|
|
@@ -91,12 +91,12 @@ Please read [CONTRIBUTING.md](https://github.com/cloudinary-community/next-cloud
|
|
|
91
91
|
|
|
92
92
|
#### Installation
|
|
93
93
|
|
|
94
|
-
This project is using [
|
|
94
|
+
This project is using [pnpm](https://pnpm.io/) as a way to manage dependencies and workspaces.
|
|
95
95
|
|
|
96
96
|
With the project cloned, install the dependencies from the root of the project with:
|
|
97
97
|
|
|
98
98
|
```
|
|
99
|
-
|
|
99
|
+
pnpm install
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
#### Configuration
|
|
@@ -128,7 +128,7 @@ CLOUDINARY_API_SECRET="<Your API Secret>"
|
|
|
128
128
|
Then run the upload script with:
|
|
129
129
|
|
|
130
130
|
```
|
|
131
|
-
|
|
131
|
+
pnpm upload
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
By default, the images inside of `scripts/images.json` will be uploaded to the "images" directory inside of your Cloudinary account. To change the location, add the `CLOUDINARY_IMAGES_DIRECTORY` environment variable with your preferred directory:
|
|
@@ -142,7 +142,7 @@ CLOUDINARY_IMAGES_DIRECTORY="<Your Directory>"
|
|
|
142
142
|
Once installed and configured, open two terminal tabs, navigating one to `next-cloudinary` and one to `docs`, running the following command in each:
|
|
143
143
|
|
|
144
144
|
```
|
|
145
|
-
|
|
145
|
+
pnpm dev
|
|
146
146
|
```
|
|
147
147
|
|
|
148
148
|
The project will now be available at <https://localhost:3000> or the configured local port.
|
|
@@ -154,7 +154,7 @@ All tests are located inside of `next-cloudinary/tests` with a directory structu
|
|
|
154
154
|
While inside `next-cloudinary`, run tests with:
|
|
155
155
|
|
|
156
156
|
```
|
|
157
|
-
|
|
157
|
+
pnpm test
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
## Contributors
|