https://github.com/troychaplin/create-block-with-tailwind
https://github.com/troychaplin/create-block-with-tailwind
experimental wordpress wp-blocks
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/troychaplin/create-block-with-tailwind
- Owner: troychaplin
- Created: 2024-12-11T03:10:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T13:42:55.000Z (over 1 year ago)
- Last Synced: 2025-02-08T22:26:37.864Z (over 1 year ago)
- Topics: experimental, wordpress, wp-blocks
- Language: JavaScript
- Homepage:
- Size: 385 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tailwind Block
Adds a dashboard that select list of active Gutenberg blocks on a site and returns a list of pages, post and other post types where that block is being used.
## Installation & Usage
Open a terminal window and navigate to where you intend to setup the repo and do the following:
- Install wp-env: `npm -g i @wordpress/env`
- Clone the repo: `git clone https://github.com/troychaplin/create-block-with-tailwind.git`
- Navigate into the repo: `cd create-block-with-tailwind`
- Install dependencies: `npm install`
### Start Developing
This repo uses [@wordpress/env](https://github.com/WordPress/gutenberg/tree/HEAD/packages/env#readme) that setups up a local WordPress environment using Docker.
- Make sure `Docker Desktop` is running
- Start WordPress: `wp-env start`
#### Other Commands
- Start watch task: `npm run start`
- Stop WordPress: `wp-env stop`
- Build assets: `npm run build`
### Local Site Details
- http://localhost:8888
- User: `admin`
- Password: `password`
**Important:** when you're done working don't forget to stop the WordPress docker environment by running `npm run wp:down`