On first setup, run npm i to install any needed npm modules for this WordPress block plugin.
Note, this plugins uses wp-env to spin up a local WordPress instance for development, this requires that you have docker installed locally.
Run
npm run startin one terminal from the root folder of this repository and
sudo npm -g i @wordpress/env
wp-env startin another terminal session, also from the plugin root directory.
This will start up WordPress with the plugin installed on your local system on port 8888.
To login use user admin and password password.
docker exec -it <docker-id>-wordpress-1 chmod 777 -R /var/www/htmlto ensure proper permissions on the directory inside the container
In case you are using something like umask 077 to enhance security on your pc, you need to update the permissions of the npm WordPress package:
sudo chmod -R 755 /usr/lib/node_modules/@wordpress