Page:
templates-generic
Pages
ARCHITECTURE
AUTO-BUMP
AUTO_CREATE_ORG_PROJECTS
Branching-Strategy
CLI_AUTOMATION
Coding-Standards
DEPLOY_SCRIPTS
DOLIBARR_MODULE_IDS
DRY_RUN_PATTERN
Documentation-Standards
File-Header-Standards
Home
JOOMLA_SYNC
LEGAL_DOC_GENERATOR_WEB_README
MANIFEST-STANDARD
MINIFICATION
MONITORING_SCRIPTS
NEW_SCRIPTS
QUICKSTART_ORG_PROJECTS
UPDATE-SERVER
WIKI_STANDARDS
WORKFLOW_STANDARDS
api-automation-index
api-definitions-default-index
api-definitions-sync-index
api-deploy-index
api-fix-index
api-index
api-maintenance-index.-
api-maintenance-index
api-plugin-index.-
api-plugin-index
api-tests-index.-
api-tests-sample-index.-
api-tests-sample-index
api-validate-index.-
automation-README.-
automation-branch-version-automation.-
automation-push-files.-
automation-repo-cleanup.-
client-repos.-.-
client-repos
standards-mokostandards-file-spec.-
standards-mokostandards-file-spec
templates-client-waas
templates-dolibarr
templates-generic
templates-mcp
unnamed
workflows-README.-
workflows-README
workflows-auto-release.-
workflows-auto-release
workflows-branch-protection.-
workflows-branch-protection
workflows-build-release.-
workflows-build-release
workflows-cascade-dev.-
workflows-cascade-dev
workflows-changelog-management.-
workflows-changelog-management
workflows-demo-deployment.-
workflows-demo-deployment
workflows-dev-branch-tracking.-
workflows-dev-branch-tracking
workflows-dev-deployment.-
workflows-dev-deployment
workflows-index.-
workflows-index
workflows-release-system.-
workflows-release-system
workflows-renovate.-
workflows-renovate
workflows-reusable-workflows.-
workflows-reusable-workflows
workflows-rs-deployment.-
workflows-rs-deployment
workflows-secret-scanning.-
workflows-secret-scanning
workflows-shared-workflows.-
workflows-shared-workflows
workflows-standards-compliance.-
workflows-standards-compliance
workflows-static-analysis.-
workflows-static-analysis
workflows-sub-issue-management.-
workflows-sub-issue-management
workflows-update-server.-
workflows-update-server
workflows-workflow-architecture.-
workflows-workflow-architecture
Clone
1
templates-generic
Jonathan Miller edited this page 2026-05-20 01:26:23 +00:00
Template-Generic Reference
Generic project template conforming to MokoStandards. Starting point for any new PHP, Node.js, or general-purpose coding project within the Moko Consulting organization.
| Type | General-Purpose Template |
| Language | PHP / Node.js / Any |
| License | GPL-3.0-or-later |
| Repo | Template-Generic |
| Wiki | Template-Generic wiki |
Purpose
Template-Generic gives every new project a consistent foundation that meets MokoStandards out of the box. It includes standardized directory layout, a Makefile build system with automatic PHP/Node.js detection, nine CI/CD workflows, and full governance scaffolding.
What the Template Provides
| Component | Description |
|---|---|
| Directory layout | src/, .gitea/, standard root files |
| Makefile | Targets for lint, test, build, package, release -- auto-detects PHP (Composer) or Node.js (npm) |
| CI/CD workflows | 9 Gitea Actions workflows covering the full project lifecycle |
| MokoStandards manifest | .gitea/.mokostandards XML for platform tooling |
| .gitignore | Multi-language coverage (PHP, Node.js, Python, OS/editor) |
| Documentation scaffolding | INSTALLATION guide, README template, SFTP config template |
| License | GPL-3.0-or-later with Moko Consulting copyright |
Quick Start
- Click Use this template on the Template-Generic repo
- Update project metadata:
| File | Update |
|---|---|
.gitea/.mokostandards |
<name>, <description>, <language>, <platform> |
Makefile |
PROJECT_NAME and PROJECT_VERSION |
README.md |
Replace template content |
docs/INSTALLATION.md |
Fill in placeholder sections |
- Add source code to
src/and build:
make install-deps # Install Composer and/or npm dependencies
make validate # Run linters and coding standards checks
make test # Run tests
make build # Build for production
make package # Create distribution packages
Workflows
| Workflow | Trigger | Purpose |
|---|---|---|
auto-release.yml |
Merge to main | Tag release, build packages, publish artifacts |
pre-release.yml |
Push to dev | Validation and pre-release builds |
pr-check.yml |
Pull request | Lints, tests, validates the PR |
security-audit.yml |
Schedule/push | Dependency vulnerability scanning |
repo-health.yml |
Schedule | Structure and standards compliance |
cleanup.yml |
Schedule | Prune stale branches and artifacts |
deploy-manual.yml |
Manual | Deploy specific version to target environment |
notify.yml |
Release created | Event notifications |
update-server.yml |
Release created | Publish update manifest |
Directory Structure
Template-Generic/
|-- .gitea/
| |-- .mokostandards # MokoStandards governance manifest
| +-- workflows/ # 9 CI/CD workflows
|-- docs/
| |-- INSTALLATION.md # Installation guide template
| +-- templates/
| |-- README-template.md # Standard README format
| +-- sftp-config.json.template # Sublime SFTP config
|-- src/ # Source code directory
|-- .gitignore # Multi-language gitignore
|-- LICENSE # GPL-3.0-or-later
|-- Makefile # Build system (PHP + Node.js)
+-- README.md
Key Wiki Pages
| Page | Description |
|---|---|
| Installation | Installation and setup guide |
| README Template | Standard README format for new projects |
| Templates Index | Index of included documentation templates |
Related
- Template-Client-WaaS -- WaaS client site template
- Template-Dolibarr -- Dolibarr module template
- Template-MCP -- MCP server template
- Documentation Standards -- wiki-first policy and naming
Repo: moko-platform · moko-platform wiki
| Field | Value |
|---|---|
| Minimum Version | 04.07.00 |
| Platform | all |
| Applies To | General-purpose repositories |
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-19 | Moko Consulting | Initial version |