https://github.com/justinyahin/generated-blocks
Generate pages with all WordPress Core blocks.
https://github.com/justinyahin/generated-blocks
block-editor gutenberg wordpress
Last synced: about 1 year ago
JSON representation
Generate pages with all WordPress Core blocks.
- Host: GitHub
- URL: https://github.com/justinyahin/generated-blocks
- Owner: JustinyAhin
- Created: 2022-05-03T11:23:46.000Z (about 4 years ago)
- Default Branch: trunk
- Last Pushed: 2022-06-15T11:09:00.000Z (about 4 years ago)
- Last Synced: 2025-04-01T02:41:22.993Z (about 1 year ago)
- Topics: block-editor, gutenberg, wordpress
- Language: TypeScript
- Homepage:
- Size: 19.4 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Generated Blocks
This is a small script to generate pages for WordPress Core blocks. The pages are published on [this site](https://blocks.trylurking.com), [example for the cover block](https://blocks.trylurking.com/cover-blocks-on-jun-15-2022/).
The script also saves the generated page with all its assets and media to [folders on the repo](./artifacts). The folders are named with the current date for easy identification, and the blocks page are grouped by date.
The script runs on [GitHub actions](./.github/workflows/run.yml) every four days at 12.00 AM UTC.
## Local testing
You can also run the script locally and test the generated pages.
First duplicate the `.env.example` file and rename it to `.env`. Replace the environment variables with the credentials for the site you want to test against (a local/non production site preferably).
Then, run the following commands:
```sh
npm install
npx playwright install
npx playwright test
```
## Purpose
To test Gutenberg blocks for accessibility, we need to have a set of blocks to test against. See [#39266](https://github.com/WordPress/gutenberg/issues/39266) for more context.