ajitbohra / find-my-blocks

A tool to help you find what Gutenbergs blocks you have used on your website and where they are located.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Find My Blocks

Find My Blocks is a WordPress plugin built to help (as it says in the name) find where you have used specific Gutenberg blocks on your WordPress website.

Installation

To install this plugin, Please use the WordPress Plugin Page.

Development

To start developing on Find My Blocks:

git clone git@github.com:eddysims/find-my-blocks.git
cd find-my-blocks
npm ci

To run the docz server:

npm start

To run the WordPress server:

Rename the .env.sample file to .env

mv .env.sample .env

Add the following 2 variables to your .env file

OUTDIR = The path to your find-my-blocks plugin. DEV_URL = The url you server your local WordPress site on.

Start the server

npm run start:wp

Linting & Testing

To run the linter use

npm run lint

To run tests use

npm run test

Mock Data

The mock data was generated using https://next.json-generator.com/NyFbl7dFd

About

A tool to help you find what Gutenbergs blocks you have used on your website and where they are located.


Languages

Language:TypeScript 68.8%Language:JavaScript 18.6%Language:PHP 12.6%