The xmllint
and xsltproc
utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from GnuWin32.
- Install WordPress
- Install jqueryvalidation-theme - clone that repo, then symlink it into your
wp-content/themes
folder - Install gilded-wordpress plugin
- Install jquery-static-index plugin
In this repo:
- Make sure nodejs (with npm) is installed, otherwise install from nodejs.org
cp config-sample.json config.json
, edit config.json to match login for local WordPress- run
npm install -g grunt-cli
- run
npm install
- Make sure your local
wordpress
nodejs module contains this commit - Make sure your local config contains
- rpc-auth and basic-auth credentials
- a https jqueryvalidation url
grunt deploy
The Dev Container is a DIND (docker-in-docker) which comes with all the requirements pre-installed. Start the WordPress instance with:
docker-compose up
and visit http://localhost:8080
- Open this repository in Visual Studio Code with Dev Containers extension installed (https://code.visualstudio.com/docs/devcontainers/containers)
- Setup WordPress with:
- Site Title: Form validation with jQuery
- Username: admin
- Password: secret
- tick the checkbox 'Confirm use of weak password'
- Your Email: <enter a valid email address>
- Activate theme 'jQuery Validation Plugin WordPress Theme' (Appeareance)
- Activate plugin 'Gilded WordPress XML-RPC extensions' (Plugins)
- Activate plugin 'jQuery Static Index' (Plugins)
grunt deploy