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

Open
jmiller wants to merge 11 commits from dev into main
Owner

Summary

Promotes the samples/ + source/ restructure from dev to main. dev was first synced up to main (it had been 111 commits behind), so this PR's diff is only the restructure — 32 files, +1966 / −1260, no stray workflow changes.

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
  • .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

  • dev was brought current with main first (merge + conflict resolution favoring main's canonical synced workflows) and a stale duplicate workflow-sync-trigger.yml at the old path was removed, so this PR does not regress any workflow.
  • 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.
  • Supersedes PR #37 (the feat/restructure-samples-sourcemain PR), now closed.

Authored-by: Moko Consulting

## Summary Promotes the `samples/` + `source/` restructure from `dev` to `main`. `dev` was first synced up to `main` (it had been 111 commits behind), so this PR's diff is **only the restructure** — 32 files, +1966 / −1260, no stray workflow changes. ## 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 - **`.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 - `dev` was brought current with `main` first (merge + conflict resolution favoring main's canonical synced workflows) and a stale duplicate `workflow-sync-trigger.yml` at the old path was removed, so this PR does not regress any workflow. - 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. - Supersedes PR #37 (the `feat/restructure-samples-source` → `main` PR), now closed. Authored-by: Moko Consulting
jmiller added 11 commits 2026-07-04 06:25:33 +00:00
fix(ci): run repo-health on PR to main only, not on push
Universal: Auto Version Bump / Version Bump (push) Successful in 5s
51807ff944
fix(ci): run repo-health on PR to main only, not on push
Universal: Auto Version Bump / Version Bump (push) Successful in 6s
1b56994f16
chore: remove security-audit.yml -- handled by MokoGitea
Universal: Auto Version Bump / Version Bump (push) Successful in 6s
48ee0ce5bb
chore(workflows): sync shared workflows from Template-Generic
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 15s
Universal: PR Check / Branch Policy (pull_request) Successful in 3s
Universal: PR Check / Validate PR (pull_request) Successful in 10s
Universal: PR Check / Secret Scan (pull_request) Successful in 11s
Generic: Project CI / Lint & Validate (pull_request) Successful in 21s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Failing after 2s
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
757887ea11
Bring dev's shared .mokogitea/workflows up to Template-Generic main (best
version): add ci-generic (on PR), ci-issue-reporter, hardened rc-revert,
version-set, workflow-sync-trigger; update the rest. Also normalizes CRLF->LF
per .gitattributes. Platform workflow (ci-joomla) preserved.

Authored-by: Moko Consulting
Merge pull request 'chore(workflows): sync shared workflows from Template-Generic (dev)' (#34) from fix/sync-from-generic-dev into dev
Universal: Auto Version Bump / Version Bump (push) Has been skipped
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 13s
b4c1065b57
Brings dev up to date with main so the samples/source restructure
applies cleanly. Workflow conflicts resolved in favor of main's
canonical synced versions.

Authored-by: Moko Consulting

# Conflicts:
#	.mokogitea/workflows/auto-release.yml
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
chore: drop duplicate workflow-sync-trigger.yml left at old path
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 3s
Universal: Auto Version Bump / Version Bump (push) Successful in 25s
Universal: PR Check / Validate PR (pull_request) Failing after 8s
Universal: PR Check / Secret Scan (pull_request) Successful in 8s
Generic: Project CI / Lint & Validate (pull_request) Failing after 12s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 9s
Universal: Build & Release / Promote to RC (pull_request) Failing after 9s
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Failing after 35s
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
2cf42b79b7
PR #36 moved this workflow to custom/; the merge of main into dev
re-surfaced the old-path copy. Remove it so dev matches main's layout.

Authored-by: Moko Consulting
Some required checks failed
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 3s
Universal: Auto Version Bump / Version Bump (push) Successful in 25s
Universal: PR Check / Validate PR (pull_request) Failing after 8s
Universal: PR Check / Secret Scan (pull_request) Successful in 8s
Generic: Project CI / Lint & Validate (pull_request) Failing after 12s
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Successful in 9s
Universal: Build & Release / Promote to RC (pull_request) Failing after 9s
Universal: Build & Release / Build & Release Pipeline (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Failing after 35s
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
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin dev:dev
git checkout dev
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#38