Skip to content

Instantly share code, notes, and snippets.

@eddiemoya
Created October 25, 2012 16:42
Show Gist options
  • Save eddiemoya/3953936 to your computer and use it in GitHub Desktop.
Save eddiemoya/3953936 to your computer and use it in GitHub Desktop.
WordPress development file structure - submodules

** Note: folders containing .git files are meant to represent repositories. Repositories inside repositories are submodules.**

/SuperRepo /.git (#1) /ProjectRepo1 /.git (#2) /wp-config.php (#3) /WordPress /.git (#4) /plugins /plugin-1 /.git (#5) /plugin-2 /.git (#5) /themes /theme-1 /.git (#6)

  1. Tracks all projects, each project is a submodule.
  2. Tracks a specific project. Each project consists of the WordPress submodule, plugin theme submodules, and a wp-config.php file.
  3. Sets WP_CONTENT constants to be the ProjectRepo itself rather than the WordPress folder.
  4. Submodule clone of the WordPress/WordPress repository hosted on GitHub
  5. Each and every plugin in its own submodule.
  6. Each theme in is own submodule. Projects will typically only need one theme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment