You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+74-8Lines changed: 74 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Cloudinary's WordPress Plugin
2
2
3
-
Cloudinary is a cloud service that offers a solution to a web application's entire image and video management pipeline.
3
+
Cloudinary is a cloud service that offers a solution to a web application's entire image and video management pipeline.
4
4
With Cloudinary, all your images are automatically uploaded, normalized, optimized and backed-up in the cloud instead of being hosted on your servers.
5
5
6
6
With Cloudinary, you can stop messing around with image editors. Cloudinary can manipulate and transform your images online, on-the-fly, directly from your WordPress console. Enhance your images using every possible filter and effect you can think of. All manipulations are done in the cloud using super-powerful hardware, and all resulting images are cached, optimized (smushed and more) and delivered via a lightning fast content delivery network (CDN).
@@ -12,20 +12,18 @@ The plugin is publicly available at: [https://wordpress.org/plugins/cloudinary-i
12
12
13
13
This Git repository is the development repository, while there's a mirror public SVN repository of the actual released WordPress plugin version: [https://plugins.svn.wordpress.org/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/](https://plugins.svn.wordpress.org/cloudinary-image-management-and-manipulation-in-the-cloud-cdn/)
14
14
15
-
16
15
> **Deprecation Note**
17
-
> The legacy WordPress Plugin version (v1.x) will be deprecated as of **February 1st, 2021**, after which support, updates and bug fixes for the legacy plugin will continue in limited fashion.
16
+
> The legacy WordPress Plugin version (v1.x) will be deprecated as of **February 1st, 2021**, after which support, updates and bug fixes for the legacy plugin will continue in limited fashion.
18
17
> The legacy plugin will be made obsolete on **August 1st, 2021** (end-of-life date), meaning, Version 1.x of the plugin will no longer function after that date.
19
-
> We ask that you update to our latest WordPress Plugin v2.x before the August 1st deadline.
20
-
18
+
> We ask that you update to our latest WordPress Plugin v2.x before the August 1st deadline.
2. **Set the correct Node version** (if using [nvm](https://github.com/nvm-sh/nvm)):
55
+
56
+
```bash
57
+
nvm install
58
+
nvm use
59
+
```
60
+
61
+
3. **Install dependencies:**
62
+
63
+
```bash
64
+
npm install
65
+
```
66
+
67
+
This will also run `composer install` automatically via the `postinstall` script, setting up PHP dependencies and linting tools.
68
+
69
+
4. **Start the local WordPress environment:**
70
+
71
+
Make sure Docker is running, then:
72
+
73
+
```bash
74
+
npm run env:start
75
+
```
76
+
77
+
This spins up a WordPress instance at [http://localhost:8888](http://localhost:8888) with the plugin activated and `WP_DEBUG` enabled. A loopback fix is applied automatically so REST API self-requests work inside the container.
|`npm run env:start`| Start the local WordPress environment |
91
+
|`npm run env:stop`| Stop the local WordPress environment |
92
+
|`npm run env:destroy`| Remove the local environment completely |
93
+
|`npm run env:logs`| View container logs |
94
+
|`npm run env:cli`| Run WP-CLI commands inside the container |
95
+
|`npm run env:clean`| Reset the environment (removes all data) |
96
+
|`npm run build`| Build front-end assets for production |
97
+
|`npm run dev`| Build front-end assets in watch mode |
98
+
|`npm run lint`| Run all linters (PHP, JS, CSS) |
99
+
|`npm run lint:php`| Run PHP CodeSniffer |
100
+
|`npm run lint:php:fix`| Auto-fix PHP linting issues |
101
+
|`npm run lint:js`| Run ESLint on JavaScript files |
102
+
|`npm run lint:js:fix`| Auto-fix JS linting issues |
103
+
|`npm run lint:style`| Run stylelint on SCSS files |
104
+
|`npm run i18n`| Generate translation files |
105
+
40
106
### Create a Plugin Release Package
41
107
42
108
Run `npm run package` to create the plugin release in the `/build` directory and package it as `cloudinary-image-management-and-manipulation-in-the-cloud-cdn.zip`in the root directory.
0 commit comments