WordPress plugin to integrate the rokka.io image service.
rokka is digital image processing done right. Store, render and deliver images. Easy and blazingly fast. This Wordpress plugin automatically uploads your pictures to rokka and delivers them in the right format, as light and as fast as possible. And you only pay what you use, no upfront and fixed costs.
Free account plans are available. Just install the plugin, register and use it.
- Documentation: https://github.com/rokka-io/rokka-wordpress-plugin/wiki
- WordPress Plugin: https://wordpress.org/plugins/rokka-integration/
- Website: https://rokka.io
- Changelog: https://github.com/rokka-io/rokka-wordpress-plugin/releases
- GitHub Repository: https://github.com/rokka-io/rokka-wordpress-plugin
- Issue tracker: https://github.com/rokka-io/rokka-wordpress-plugin/issues
- Node.js >= 16 (https://nodejs.org/)
- gettext (https://www.gnu.org/software/gettext/)
- WordPress >= 4.7
- PHP >= 7.1
-
Clone this repo
-
Install composer dependencies
curl -s https://getcomposer.org/installer | php php composer.phar install
-
Install Node dependencies
npm install
npm run dev
: Builds assets in development mode and watches for any changes and reports back any errors in your code.npm run lint
: Lints JavaScript & PHP files.npm run build
: Build production code intoassets/dist
folder.
-
To extract the labels and generate the
languages/rokka-integration.pot
file run the following command:./scripts/translations/extract-messages.sh
-
To update the translation files (
*.po
) run the following command:./scripts/translations/update-translation-files.sh
-
To generate the
*.mo
translation files run the following command:./scripts/translations/compile-translation-files.sh
The following commands can be used to set up a local dev environment. See the official documentation of @wordpress/env
for a complete list of commands.
npm run wp-env start
: Starts the Docker containers.npm run wp-env stop
: Stops the Docker containers.
To run the tests use the following command:
npm run test:unit:php
or the following command to run a specific test:
npm run test:unit:php -- --filter 'my_test'
To release a new version to the WordPress plugin repository use the following script:
./scripts/deploy-wp-plugin.sh
This command will automatically release the latest git tag as a version in the plugin repository.