Page:
templates-generic
Pages
AUTO-CREATE-ORG-PROJECTS
Branching-Strategy
CLI-AUTOMATION
Coding-Standards
DEPLOY-SCRIPTS
DOLIBARR-MODULE-IDS
DRY-RUN-PATTERN
Documentation-Standards
File-Header-Standards
JOOMLA-SYNC
LEGAL-DOC-GENERATOR-WEB-README
MONITORING-SCRIPTS
NEW-SCRIPTS
QUICKSTART-ORG-PROJECTS
RELEASE-MANAGEMENT
Version-Standard
WIKI-STANDARDS
WORKFLOW-STANDARDS
api-maintenance-index
api-plugin-index
api-tests-index
api-tests-sample-index
automation-README
automation-branch-version-automation
automation-repo-cleanup
client-repos
standards-mokostandards-file-spec
templates-client-waas
templates-dolibarr
templates-generic
templates-mcp
unnamed
workflows-README
workflows-auto-release
workflows-branch-protection
workflows-build-release
workflows-cascade-dev
workflows-changelog-management
workflows-demo-deployment
workflows-dev-branch-tracking
workflows-dev-deployment
workflows-index
workflows-release-system
workflows-renovate
workflows-reusable-workflows
workflows-rs-deployment
workflows-secret-scanning
workflows-shared-workflows
workflows-standards-compliance
workflows-static-analysis
workflows-sub-issue-management
workflows-update-server
workflows-workflow-architecture
Clone
3
templates-generic
Jonathan Miller edited this page 2026-06-21 05:40:19 +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 MokoGitea 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: mokocli · mokocli 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 |
Pages
- AUTO-CREATE-ORG-PROJECTS
- Branching-Strategy
- CLI-AUTOMATION
- Coding-Standards
- DEPLOY-SCRIPTS
- DOLIBARR-MODULE-IDS
- DRY-RUN-PATTERN
- Documentation-Standards
- File-Header-Standards
- JOOMLA-SYNC
- LEGAL-DOC-GENERATOR-WEB-README
- MONITORING-SCRIPTS
- NEW-SCRIPTS
- QUICKSTART-ORG-PROJECTS
- RELEASE-MANAGEMENT
- Version-Standard
- WIKI-STANDARDS
- WORKFLOW-STANDARDS
- api-maintenance-index
- api-plugin-index
- api-tests-index
- api-tests-sample-index
- automation-README
- automation-branch-version-automation
- automation-repo-cleanup
- client-repos
- features
- operations
- reference
- standards-mokostandards-file-spec
- templates-client-waas
- templates-dolibarr
- templates-generic
- templates-mcp
- unnamed
- workflows-README
- workflows-auto-release
- workflows-branch-protection
- workflows-build-release
- workflows-cascade-dev
- workflows-changelog-management
- workflows-demo-deployment
- workflows-dev-branch-tracking
- workflows-dev-deployment
- workflows-index
- workflows-release-system
- workflows-renovate
- workflows-reusable-workflows
- workflows-rs-deployment
- workflows-secret-scanning
- workflows-shared-workflows
- workflows-standards-compliance
- workflows-static-analysis
- workflows-sub-issue-management
- workflows-update-server
- workflows-workflow-architecture
- workflows