refactor: restructure template into samples/ + source/ layout #37

Closed
jmiller wants to merge 1 commits from feat/restructure-samples-source into main
Owner

Summary

Restructures the template repo from per-type types/<type>/ scaffolds into a cleaner samples/ (reference) + source/ (build) layout, and greatly expands the Joomla CI suite.

Changes

  • samples/manifest/ — well-formed reference <extension> manifests for all six extension types (component, template, module, plugin, package, library)
  • samples/script/ — standard script.php install/update handler templates ({REPONAME}/{PACKAGENAME} placeholders)
  • source/ — new canonical build root; CI scans source//src//htdocs/
  • Removed types/ per-type scaffolds
  • Rewrote root README.md for the new structure + CI table (was accidentally reduced to a "Component Scaffold" stub in the working tree)
  • .gitignore — anchored the Python MANIFEST rule to root (/MANIFEST) so it no longer swallows samples/manifest/ on case-insensitive filesystems (Windows/macOS)
  • ci-joomla.yml — added SQL, language-key consistency/orphan, PHP CodeSniffer, security-pattern, updates.xml, asset-existence, MVC-naming, router, ACL, webservices, ZIP dry-run, and JS/CSS checks

Notes

  • The .gitignore fix is important: without it, the manifest samples look committed locally but are silently absent from the repo and any repo generated from this template.

Authored-by: Moko Consulting

## Summary Restructures the template repo from per-type `types/<type>/` scaffolds into a cleaner **`samples/` (reference) + `source/` (build)** layout, and greatly expands the Joomla CI suite. ## Changes - **`samples/manifest/`** — well-formed reference `<extension>` manifests for all six extension types (component, template, module, plugin, package, library) - **`samples/script/`** — standard `script.php` install/update handler templates (`{REPONAME}`/`{PACKAGENAME}` placeholders) - **`source/`** — new canonical build root; CI scans `source/`/`src/`/`htdocs/` - **Removed** `types/` per-type scaffolds - **Rewrote root `README.md`** for the new structure + CI table (was accidentally reduced to a "Component Scaffold" stub in the working tree) - **`.gitignore`** — anchored the Python `MANIFEST` rule to root (`/MANIFEST`) so it no longer swallows `samples/manifest/` on case-insensitive filesystems (Windows/macOS) - **`ci-joomla.yml`** — added SQL, language-key consistency/orphan, PHP CodeSniffer, security-pattern, updates.xml, asset-existence, MVC-naming, router, ACL, webservices, ZIP dry-run, and JS/CSS checks ## Notes - The `.gitignore` fix is important: without it, the manifest samples look committed locally but are silently absent from the repo and any repo generated from this template. Authored-by: Moko Consulting
jmiller added 1 commit 2026-07-04 00:52:26 +00:00
refactor: restructure template into samples/ + source/ layout
Universal: PR Check / Branch Policy (pull_request) Failing after 1s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 2s
Generic: Project CI / Lint & Validate (pull_request) Failing after 10s
Universal: PR Check / Validate PR (pull_request) Failing after 6s
Universal: PR Check / Secret Scan (pull_request) Successful in 6s
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Failing after 32s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
Branch Cleanup / Delete merged branch (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Has been skipped
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
cb1a9d6c31
Replace per-type types/<type>/ scaffolds with a samples/ reference
directory (manifest XML + install script templates for all six
extension types) and a single source/ build directory that CI scans.

- Add samples/manifest/*.xml for component, template, module, plugin,
  package, and library
- Add samples/script/*.php install/update script templates
- Add source/ as the canonical build root (CI scans source/src/htdocs)
- Remove types/ per-type scaffolds
- Rewrite root README for the new structure and expanded CI suite
- Anchor Python MANIFEST ignore rule to root (/MANIFEST) so it no
  longer swallows samples/manifest/ on case-insensitive filesystems
- Expand ci-joomla.yml: SQL, language-key, PHPCS, security, updates.xml,
  asset, MVC naming, router, ACL, webservices, ZIP dry-run, JS/CSS checks

Authored-by: Moko Consulting
jmiller closed this pull request 2026-07-04 06:25:56 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No Reviewers
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/Template-Joomla#37