Metablock
A block to show the value of a custom field
by imaginarymachines · github.com/imaginarymachines/metablock
★ 6stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/imaginarymachines/metablock/archive/refs/heads/main.zipReadme
Metablock
Installation
- Git clone:
git clone git@github.com:shelob9/joshmetablock.git
- 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 testyarn 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 --admin_email=something@example.comdocker-compose run wpcli wp user create admin admin@example.com --role=administrator --user_pass=pass
- Run any WP CLI command in container: