Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 2.23 KB

README.md

File metadata and controls

59 lines (41 loc) · 2.23 KB

jqueryvalidation-content

Building

Requirements

The xmllint and xsltproc utilities need to be in your path. If you are on Windows, you can get libxml2 and libxslt from GnuWin32.

Installation

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

Hacks

  • 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

Deploy

grunt deploy

Building with Dev Containers

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

Requirements

Installation

  • 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)

Deploy

grunt deploy