{"id":23379415,"url":"https://github.com/log-oscon/wp-construct","last_synced_at":"2025-04-10T20:46:28.012Z","repository":{"id":53286606,"uuid":"46348558","full_name":"log-oscon/WP-Construct","owner":"log-oscon","description":"Boilerplate for a new WordPress project with a Genesis Framework based theme.","archived":false,"fork":false,"pushed_at":"2021-03-31T21:13:36.000Z","size":855,"stargazers_count":6,"open_issues_count":6,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-24T18:21:13.927Z","etag":null,"topics":["boilerplate","genesis-framework","vagrant","wordpress"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/log-oscon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-17T13:24:27.000Z","updated_at":"2021-03-31T21:12:24.000Z","dependencies_parsed_at":"2022-08-28T17:30:49.131Z","dependency_job_id":null,"html_url":"https://github.com/log-oscon/WP-Construct","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2FWP-Construct","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2FWP-Construct/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2FWP-Construct/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/log-oscon%2FWP-Construct/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/log-oscon","download_url":"https://codeload.github.com/log-oscon/WP-Construct/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248295169,"owners_count":21080045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["boilerplate","genesis-framework","vagrant","wordpress"],"created_at":"2024-12-21T19:18:33.860Z","updated_at":"2025-04-10T20:46:27.989Z","avatar_url":"https://github.com/log-oscon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WP-Construct\n\nWe use this as the foundation for new WordPress projects at log.\n\n## Introduction\n\nThis guide assumes some basic familiarity with the command line, the Git version control system and Docker or Vagrant.\n\nWe recommend using a OS X machine but a PC with Windows 10 **Pro or Enterprise 64 bit** Operating System should work just fine. Refer to [Windows troubleshooting ](#windows-troubleshooting) section for detailed information on system requirements and problem solving. \n\nThere are many graphical tools allowing you to achieve the same results as the ones described here, but a step-by-step guide for those is outside the scope of this document.\n\n## Dependencies \n\nAltough it is possible to run it with other versions, this guide assumes that `php 7.2`, `composer`,`node v8.12.0` and `gulp 3.9.0` are used.  \n\n\n## Setting up development environment\n\nCurrently at log we use and recommend a *simple Docker based development environment for WordPress*, [WP-Docker-Construct](https://github.com/log-oscon/WP-Docker-Construct). \n\nVarying Vagrant Vagrants (VVV) configuration files are included in this project but as this is a legacy setup, its no longer tested. If you like to use it follow [WP-Construct VVV Setup](https://github.com/Varying-Vagrant-Vagrants/VVV/blob/develop/README.md#installation) instructions.\n\n\n## Themes \n\nThis setup bundles a genesis child theme. If you intend to use it, you must have Genesis main theme (the Genesis Framework) in order for the child-theme to work. You can get it at [http://my.studiopress.com/themes/genesis/](http://my.studiopress.com/themes/genesis/). \nIt is also possible to install themes through composer or by running the build script. \n\n\n## Build themes and plugins\n\nA build script is included to help you setup wordpress. \nYou can find this script in `$ .scripts/build.sh`.\n\nThis script operates in two modes, local and live mode. \n\n### Local mode \n\nThis mode allows you to install and build themes and plugins. \n\n```\n$ sh .scripts/build.sh\nWould you like to install a THEME? y\nPlease select the theme to install:\n1) git repository URL\n2) genesis-starter\n#?\n```\n\n#### Git repository url \n\nIf you choose option 1) *git repository URL* you're allowed to fetch a git remote theme as a submodule or clone and build it: \n\n\n```\n#? 1\nTheme git repository URL: git@bitbucket.org:devteam/dev-theme.git\nWould you like to clone or install as submodule (c/s)? s\nCloning into '/Users/dev/WP-Construct/wp-content/themes/dev-theme'...\n(...)\nWould you like to build 'dev-theme' (y/n)? y\n```\n\n\n#### Genesis theme\n\nIf you choose *genesis-starter*, it is already on disk, so you get option of building the theme right away: \n\n```\n#? 2\nWould you like to build 'genesis-starter' (y/n)? y\n```\n\n#### Build commands \nThe following commands are run in `/wordpress` and in each build selected:\n\n* `$ composer update `;\n* `$ npm install`;\n* `$ npm run build --if-present`;\n\n\n### Live mode \n*Live mode * is intended to be used in a continuous integration(CI) scenário. It automatically builds `/wordpress` configurations and includes a commented section to build all the installed submodules automatically. \n\n### Plugins \n\nPlugins instalation can be done directly via composer on the `/wordpress/composer.json` or installed via submodules via build script as a clone or submodule. \n\n\n## Continuous Integration \n\nA few scripts are bundled to automate continuous integration in different scenarios. For example, *deploy-codeship-wpengine.sh* allows to automate testing and publishing between a git repository and wp-engine. \nCheck .scripts folder for available scripts. \n\n\n## Windows troubleshooting\u003ca name=\"windows-troubleshooting\"\u003e\u0026nbsp;\u003c/a\u003e\n\n### Required windows version \n\n**Windows 10 Pro or Enterprise 64 bit** Operating System are the supported versions, Hyper-V is required. [Check this article](https://techcommunity.microsoft.com/t5/ITOps-Talk-Blog/Step-By-Step-Enabling-Hyper-V-for-use-on-Windows-10/ba-p/267945) if you need to enable Hyper-V. \n\n### Dependencies\n\n* [Gitbash](https://gitforwindows.org/)\n* [php 7.2](https://windows.php.net/download#php-7.2)\n* [composer](https://getcomposer.org/download/)\n* [node-v8.12.0](https://nodejs.org/es/blog/release/v8.12.0/)\n* [python 2.7](https://www.python.org/downloads/release/python-2716/)\n\n\n### MSBUILD : error MSB4132: The tools version \"2.0\" is unrecognized. Available tools versions are \"4.0\n\nIf you face this error when building do as following: \n\n* open up a new *gitbash* **as administrator** and run:\n`$ npm install --global --production windows-build-tools`\n* then run \n`$ npm config set msvs_version 2017`; \n* close all instances of *gitbash*, reopen a *gitbash* (regular this time, non-administrator) return to the project directory and run build again. \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog-oscon%2Fwp-construct","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flog-oscon%2Fwp-construct","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flog-oscon%2Fwp-construct/lists"}