fe07667c38 | ||
---|---|---|
assets | ||
bin | ||
tests | ||
wp-offline-content | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
Makefile | ||
README.md | ||
karma.conf | ||
package.json | ||
phpunit.xml.dist | ||
sw-tests.js |
README.md
wp-offline-content
A WordPress plugin for offlining content.
IMPORTANT: I'm very sorry to announce this plugin is unmaintained thought it is still compatible with WordPress up to version 4.5.9.
Install the plugin
You can find this plugin in the WordPress Plugin repository so you can install it from the Plugins menu of your WordPress installation.
In case you want to do it manually, here are the instructions:
First, clone the repository.
Now, at the root of the repository, run (you need composer for this):
$ composer install --working-dir=wp-offline-content --optimize-autoloader
And copy (or symlink) the folder wp-offline-content
inside your WordPress plugins
directory.
Once installed, activate the plugin from the Plugins menu in the Dashboard. Options are available to customize under the Offline content submenu in Settings.
Running tests
Install dependencies:
./bin/install-wp-tests.sh MYSQL_DATABASE_NAME MYSQL_USER MYSQL_PASSWORD localhost latest
Run tests:
make test
Run service worker tests:
make test-sw