From 0b4f136674cf9f3be7ceb960e46f4b7a3fd6a69f Mon Sep 17 00:00:00 2001 From: magdev Date: Sat, 28 Feb 2026 09:56:14 +0100 Subject: [PATCH] Update CLAUDE.md: mark woocommerce as read-only, note docker not yet available Add constraints section documenting that the woocommerce plugin is read-only and that the Docker environment is not yet set up. Track composer.lock. Co-Authored-By: Claude Opus 4.6 --- CLAUDE.md | 9 +++++++-- composer.lock | 20 ++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 composer.lock diff --git a/CLAUDE.md b/CLAUDE.md index c8425a9..2a08d80 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -253,7 +253,7 @@ This child theme is part of a three-project ecosystem. Each project is a separat | Project | Type | Location | Repository | | ------- | ---- | -------- | ---------- | -| woocommerce | Plugin | `wp-content/plugins/woocommerce/` | | +| woocommerce | Plugin (read-only) | `wp-content/plugins/woocommerce/` | | | wp-bootstrap | Parent Theme | `wp-content/themes/wp-bootstrap/` | | | wc-bootstrap | Child Theme | `wp-content/themes/wc-bootstrap/` | | @@ -265,12 +265,17 @@ wp-bootstrap (parent theme, Bootstrap 5 FSE + Twig rendering) +-- woocommerce (plugin, provides post types, logic, base Twig templates) ``` +### Important Constraints + +- **WooCommerce plugin is read-only.** We have no control over its source code. All customizations happen in the child theme via template overrides and hooks. +- **Docker environment is not yet set up.** Commands referencing `docker exec` (e.g., in the translation workflow) are not currently available. Local alternatives or manual steps must be used until the container is configured. + ### Cross-Project Workflow 1. **One session per project.** Each session reads its own `CLAUDE.md` and stays within its own git repo. 2. **Plugin changes first.** When a change affects templates consumed by the theme, make the plugin change first, then switch to the theme session. 3. **Communicate changes explicitly.** When switching sessions, describe what changed upstream (new variables, renamed classes, new templates, etc.). -4. **Shared Docker environment.** All three projects are bind-mounted into the same Docker container, so changes are visible live without rebuilds. +4. **Shared Docker environment.** All three projects will be bind-mounted into the same Docker container once it is set up, so changes will be visible live without rebuilds. ### Template Contract (Plugin -> Theme) diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..625c1c6 --- /dev/null +++ b/composer.lock @@ -0,0 +1,20 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "fc5a36240bb371bdf7ede8d903510047", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=8.3" + }, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +}