- Git clone:
git clone [email protected]:shelob9/joshmetablock.git
- Install javascript dependencies
yarn
npx plugin-machine plugin zip
- 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
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
- Run any WP CLI command in container: