Skip to content

imaginarymachines/metablock

Repository files navigation

Metablock

Built With Plugin Machine

Installation

  • Git clone:
  • Install javascript dependencies
    • yarn

Create Installable ZIP File

  • npx plugin-machine plugin zip

Working With JavaScript

  • Build JS/CSS
    • yarn build
  • Start JS/CSS for development
    • yarn start
  • Test changed files
    • yarn test --watch
  • Test all files once
    • yarn test
    • yarn test --ci

Local Development Environment

A docker-compose-based local development environment is provided.

  • Start server
    • docker-compose up -d
  • Acess Site
  • WP CLI
    • Run any WP CLI command in container:
      • docker-compose run wpcli wp ...
    • Setup site with WP CLI
      • docker-compose run wpcli wp core install --url=http://localhost:6091 --title="Metablock" --admin_user=admin0 [email protected]
      • docker-compose run wpcli wp user create admin [email protected] --role=administrator --user_pass=pass

About

A block to show the value of a custom field

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published