Add dev_commit.sh helper and no-emoji mandate

This commit is contained in:
Hanson.xyz Dev
2025-11-28 16:05:26 -06:00
parent fc7c6b0844
commit 7650362efe
3260 changed files with 1429683 additions and 0 deletions
+65
View File
@@ -28,6 +28,10 @@ Contract documents in parent directory:
## Development Mandates
### Communication & Output
1. **No emojis** - Never use emojis in code, website output, commit messages, documentation, or conversation. This is a professional project.
### UI & Styling
1. **Use Tailwind CSS** as the UI framework
@@ -140,6 +144,67 @@ Contract documents in parent directory:
| Forms | Contact Form 7 |
| SEO | Yoast SEO |
## Tools Available
### WP-CLI
WP-CLI is installed at `/usr/local/bin/wp`. Use it for WordPress administration tasks:
```bash
# Theme management
wp theme list
wp theme activate homeproz
# Plugin management
wp plugin install <plugin-name> --activate
wp plugin list
# Database operations
wp db export backup.sql
wp db import backup.sql
# Cache and transients
wp cache flush
wp transient delete --all
# User management
wp user list
wp user create username email@example.com --role=administrator
# Options
wp option get siteurl
wp option update blogname "HomeProz Real Estate"
# Rewrite rules
wp rewrite flush
# Run with --allow-root since we're running as root
# All commands should use: wp --allow-root <command>
```
**Note:** Always use `--allow-root` flag when running as root user.
### dev_commit.sh
A helper script for development checkpoints. Located at `/var/www/html/dev_commit.sh`.
```bash
# Usage
./dev_commit.sh "Step X.X: Description of what was done"
# What it does:
# 1. Dumps database to db-snapshots/db-snapshot.sql (overwrites each time)
# 2. Runs git add -A
# 3. Commits with your message
```
**MANDATE:** Use `./dev_commit.sh` after completing each step in the implementation plan. This ensures we have a database snapshot with every code commit.
Example:
```bash
./dev_commit.sh "Step 1.3: Configure theme.json with brand colors"
```
---
## Theme Structure