Skip to content

Latest commit

 

History

History
101 lines (65 loc) · 3.13 KB

README.md

File metadata and controls

101 lines (65 loc) · 3.13 KB

Rokka integration plugin for WordPress

Build Status

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.

Further Information

Development

Requirements

Installation

  1. Clone this repo

  2. Install composer dependencies

    curl -s https://getcomposer.org/installer | php
    php composer.phar install
  3. Install Node dependencies

    npm install

Compile assets

  • 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 into assets/dist folder.

Extract messages / Compile translation files

  1. To extract the labels and generate the languages/rokka-integration.pot file run the following command:

    ./scripts/translations/extract-messages.sh
  2. To update the translation files (*.po) run the following command:

    ./scripts/translations/update-translation-files.sh
  3. To generate the *.mo translation files run the following command:

    ./scripts/translations/compile-translation-files.sh

Setup local dev environment

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.

Unit tests

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'

Release new plugin version

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.