{"id":50447167,"url":"https://github.com/troychaplin/wp-dependency-manager-base-files","last_synced_at":"2026-05-31T22:03:44.284Z","repository":{"id":298989333,"uuid":"1001762823","full_name":"troychaplin/wp-dependency-manager-base-files","owner":"troychaplin","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-21T03:07:31.000Z","size":2833,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T05:16:01.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/troychaplin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-14T01:15:27.000Z","updated_at":"2026-04-21T03:07:34.000Z","dependencies_parsed_at":"2025-06-14T02:37:20.796Z","dependency_job_id":null,"html_url":"https://github.com/troychaplin/wp-dependency-manager-base-files","commit_stats":null,"previous_names":["troychaplin/wp-monorepo-files","troychaplin/wp-dependency-manager-base-files"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/troychaplin/wp-dependency-manager-base-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troychaplin%2Fwp-dependency-manager-base-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troychaplin%2Fwp-dependency-manager-base-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troychaplin%2Fwp-dependency-manager-base-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troychaplin%2Fwp-dependency-manager-base-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/troychaplin","download_url":"https://codeload.github.com/troychaplin/wp-dependency-manager-base-files/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troychaplin%2Fwp-dependency-manager-base-files/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33750484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-31T22:03:43.229Z","updated_at":"2026-05-31T22:03:44.279Z","avatar_url":"https://github.com/troychaplin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WordPress Monorepo Base\n\nA reusable base setup for WordPress projects using a monorepo architecture with [Turbo](https://turbo.build/) for build orchestration and [pnpm](https://pnpm.io/) workspaces for package management. Includes a starter theme and a block plugin with ESLint, Stylelint, PHPCS, and Webpack pre-configured.\n\n## Prerequisites\n\n- Node.js (version pinned in `.nvmrc`)\n- pnpm (version pinned in `package.json` `packageManager` field)\n- Composer (for PHP linting and theme/plugin PHP dependencies)\n- WordPress \u003e= 6.6\n\n## Project Structure\n\n```\n.\n├── .github/workflows/         # GitHub Actions CI\n├── .husky/                    # Git hooks (pre-commit → lint-staged)\n├── wordpress/\n│   └── wp-content/\n│       ├── plugins/\n│       │   └── base-plugin/   # Starter block plugin\n│       └── themes/\n│           └── base-theme/    # Starter theme\n├── .eslintrc.json\n├── .prettierrc\n├── .stylelintrc.json\n├── composer.json\n├── package.json               # Root workspace config\n├── phpcs.xml.dist\n├── pnpm-workspace.yaml\n└── turbo.json\n```\n\n## Getting Started\n\n1. Clone the repository and place a WordPress install in `wordpress/`.\n2. Install dependencies:\n   ```bash\n   pnpm install\n   composer install\n   ```\n3. Start development mode:\n   ```bash\n   pnpm run start        # Watch both plugin and theme\n   pnpm run start:plugin # Plugin only\n   pnpm run start:theme  # Theme only\n   ```\n\n## Scripts\n\n### Build\n\n| Script                  | Description                |\n| ----------------------- | -------------------------- |\n| `pnpm run build`        | Build both plugin and theme |\n| `pnpm run build:plugin` | Build plugin only          |\n| `pnpm run build:theme`  | Build theme only           |\n\n### Lint \u0026 Format\n\n| Script                 | Description                                |\n| ---------------------- | ------------------------------------------ |\n| `pnpm run lint`        | Run all linters (JS, CSS, PHP)             |\n| `pnpm run lint:plugin` | Lint plugin (JS, CSS, PHP)                 |\n| `pnpm run lint:theme`  | Lint theme (JS, CSS, PHP)                  |\n| `pnpm run format`      | Auto-fix all formatters (JS, CSS, PHP)     |\n\nGranular targets exist per language (e.g. `lint:plugin-js`, `format:theme-css`).\n\n### Maintenance\n\n| Script                  | Description                                        |\n| ----------------------- | -------------------------------------------------- |\n| `pnpm run clean`        | Remove build artifacts and node_modules            |\n| `pnpm run clean:fresh`  | Full reset (removes lockfile, reinstalls, rebuilds) |\n\n### Bundle Analysis\n\nSet `ANALYZE=1` to emit a webpack bundle report into `./bundle-analysis/`:\n\n```bash\nANALYZE=1 pnpm run build:plugin\nANALYZE=1 pnpm run build:theme\n```\n\n## Code Standards\n\n- JavaScript — ESLint with `@wordpress/eslint-plugin`\n- CSS/SCSS — Stylelint with `@wordpress/stylelint-config/scss`\n- PHP — `wp-coding-standards/wpcs` via PHPCS\n- Formatting — Prettier (tabs, single quotes, 100-char width)\n\nPre-commit hook runs `lint-staged` on changed files across all three languages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroychaplin%2Fwp-dependency-manager-base-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftroychaplin%2Fwp-dependency-manager-base-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroychaplin%2Fwp-dependency-manager-base-files/lists"}